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.

n00bie :)

Old posts that have not been replied to for several years.
Locked
E
EvilKalaH

Post by EvilKalaH »

bind ctcp - ACTION pub_kick

proc pub_kick {nick uhost hand chan args} {

putserv "KICK $chan $nick :$1"
return 1
}

with the help from the other i came so far. new question :razz: how do i know when they say /me is away on the chans ? i was thinking about tag $text like in the documentation both it didn't work then i thought about $1 and still it didn't work. Can someone help me?
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »


bind ctcp - ACTION pub_kick

proc pub_kick {nick uhost hand chan args} {

putserv "KICK $chan $nick :$1"
return 1
}
bind ctcp - ACTION pub_kick

proc pub_kick {nick uhost hand chan args} {
if {[string tolower $args] == "*away*"} {
putkick "$chan $nick :$text"
return 1
}
}


try that
Elen sila lúmenn' omentielvo
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

While the above will work, I sugest that you do not use the variable args.

This has a special function in Tcl.
P
Phooka

Post by Phooka »

try switsching text with args :grin:
Locked