nick arent on irc problem - 12/03/06 11:20 AM
Code:
on @CAPS1:text:*:#:{ if (%dkickop == off) && ($nick isop $chan) { return } if (%dkickvo == off) && ($nick isvo $chan) { return } if ($ulevel == 200) && (%ctcp.op == Enabled) { return } if ($ulevel == 125) && (%Group.AutoOp == Enabled) { return } if ($ulevel == 100) && (%friend == Enabled) { return } if ($ulevel == 75) && (%a.voice == Enabled) { return } set %cps-chan $chan var %p = $int($calc(($regex($1-,/[A-ZÄÖ]/g) / $len($1-)) * 100)) if (%p > 75) && ($len(%matchtxt) > 5) && (!$hget($+(warn,$cid,$chan),$nick)) { hinc -m $+(warn,$cid,$chan) $nick .ruser CAPS1 $nick | ban -u $+ %caps.b # $nick %bs | kick $chan $nick You have been warned. turn off your CAPSLOCK. } elseif (%p > 75) && ($len(%matchtxt) > 5) && ($hget($+(warn,$cid,$chan),$nick)) { .ruser CAPS1 $nick | ban -u $+ %caps.b # $nick %bs | kick $chan $nick You have been warned. turn off your CAPSLOCK. hdel $+(warn,$cid,$chan) $nick } }
the code i have, now to my problem. if the person leav irc or the channel befor the script have been triggered fully "kicked the person", then i see this message:
Nick is not currently on IRC
And i have been trying: if ($nick !ison $chan) { halt } and no luck, also tryed to replace $chan with #, still no luck :tongue: any ideas?
______________________________________
One more question i have, from the help file:
$query(0) returns the total number of open query windows
That arent true, cos if i have two server connections open, then it will only count the querys on one server, how would i solve this in the simplest way ? same goes for open channels..