is there a way where someone else in the chatroom can use that slap command??@hsushoe:Yes, all you have to do is change this section of code:
alias slap {
var %n $iif($1,$1,$$snicks)
if ($sock(slap)) sockclose slap
sockopen slap www.watchout4snakes.com 80
sockmark slap $active %n
}
To this one:
on *:TEXT:*:#: {
if ($strip($1) == !slap) {
var %n $iif($2,$2,$$snick(#,1))
if ($sock(slap)) sockclose slap
sockopen slap www.watchout4snakes.com 80
sockmark slap $active %n
}
}
Then the usage is for someone else in the channel to type: !slap Nickname
If no nickname is specified, the highlighted (selected) nickname will be slapped.
P.S You can also keep the alias slap without changing it but to add the on text event.