This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

mrc to tcl

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
s
silverboy
Halfop
Posts: 55
Joined: Sat Feb 11, 2006 5:44 am
Contact:

mrc to tcl

Post by silverboy »

can anyone convert this .mrc to a tcl.

Code: Select all

on !@*:join:#beach,#born2rule,#Maldives,#public: {
  var %fa = $nick
  var %admt = $address($nick,1)
  if (users.undernet.org isin %admt ) {
    halt
  }
  elseif (*1 iswm %fa || *2 iswm %fa || *0 iswm %fa || *3 iswm %fa || *4 iswm %fa || *5 iswm iswm %fa || *6 iswm %fa || *7 iswm %fa || *8 iswm %fa || *9 iswm %fa |) {
    kick # $nick 14SPAM BOT detected!! Change nick/login to user before returning back.
    echo $nick is a Spam Bot.
  }
}
G
GeeX
Voice
Posts: 29
Joined: Mon Sep 19, 2005 4:29 am

Post by GeeX »

What function has this script?
s
sleeplezz
Voice
Posts: 7
Joined: Sun Jun 04, 2006 12:13 pm

Post by sleeplezz »

GeeX wrote:What function has this script?
Scripts check every user who joining specified chan if you're an op, and get user address, if the address match with users.undernet.org, script will be halted, but if address match of a combination of numbers, script will start to kick that user with specified reason. And then echoing user nick as a spam bot, this function maybe same as putlog on tcl.

Is am right? :wink:
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

set cchans {#beach #born2rule #Maldives #public}

bind JOIN -|- * checkjoin

proc checkjoin {nick host hand chan} {
  global cchans
  if {[lsearch $cchans $chan] >= 0 && ![string match *users.undernet* $host] && [string match {*[0-9]} $nick]} {
    putquick "KICK $chan $nick :Spambot detected."
    putlog "Spambot detected on $chan ($nick!$host)"
  }
}
   
Something like this
s
silverboy
Halfop
Posts: 55
Joined: Sat Feb 11, 2006 5:44 am
Contact:

Post by silverboy »

thanks
G
GHF
Voice
Posts: 2
Joined: Wed May 23, 2012 12:54 pm
Contact:

Can you convert this for me?

Post by GHF »

on *:text:*:#Gline:{
gline $$2 .We do not allow proxy
}

Thanks
Post Reply