Skip to content
MSN

Command in whisper...?

A TG007 community discussion started by axis.

Discussion 5 posts
Page 1 of 1
Open
Topic #4926 · 5 published posts · 689 views

Hey ppl... how can i do a command to my script in whisper... and he does it???

 

Like:

!kick <nickname> <reason> in whisper... and it kicks <nickname> for <reason>

 

???

just in your kick code, don't use $chan or # but use $comchan($nick,1) and it should work then.

Try this:

on admin:text:!kick*:?:{
 if (!$comchan($ial($2).nick,1) { privmsg $nick Invalid nickname. }
 if ($comchan($ial($2).nick,1).op != $true) { privmsg $nick Unable to comply; I am not a host. }
 kick $ial($2).nick $comchan($ial($2).nick,1) $iif($3,$3,Requested by $nick)
}

That should kick the person from the first common channel that both you and the person are on. It should also work with wildcards (*).

 

Hope this helps

People are like slinkies; they're generally boring until you push them down stairs

naw that won't work angelia, it should be like this

 

on admin:text:!kick*:*:{
 var %c = $iif($chan,$chan,$comchan($nick,1))
 if ($2 !ison %c) privmsg $nick Invalid nickname.
 elseif ($2 isop %c) privmsg $nick Unable to comply; I am not a host.
 else kick %c $2 $iif($3,$3-,Requested by $nick)
}

I guess I'm too used to IRC

People are like slinkies; they're generally boring until you push them down stairs