CharmedOne Posted February 18, 2009 Report Share Posted February 18, 2009 Some reason this isnt doing anything no idea why. ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;REPEAT TEXT KICKER ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ on @*:text:*:%cpchan: { ;RepeatText if ($readini($settings(chanoptions.txt),$iif($ini($settings(chanoptions.txt),#,0) != 0,#,Default),RepeatText)) { if ($nick !isop #) && ( %repeat == on ) { var %rp.repeats = rp. $+ $nick $+ . $+ $chan var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text if ( % [ $+ [ %rp.repeats ] ] == $null ) { set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.repeats ] ] 1 set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.text ] ] $1- } elseif ( % [ $+ [ %rp.text ] ] == $1- ) { inc % [ $+ [ %rp.repeats ] ] } elseif ( % [ $+ [ %rp.text ] ] != $1- ) { set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.text ] ] $1- set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.repeats ] ] 1 } if ( % [ $+ [ %rp.repeats ] ] > %limit.repeat ) { if ($nick isvoice $chan) && (%cpvoice == no) { halt } if ($nick ishop $chan) && (%cphops == no) { halt } if ($nick isop $chan) && (%cpops == no) { halt } access $chan add deny $+(*!*, $Ial($nick).addr) $+ %capsbt # $nick 2 kick # $nick %repeatmsg $+ , deny time: $repkbt - %name unset % [ $+ [ %rp.repeats ] ] unset % [ $+ [ %rp.text ] ] } } } } on @*:ACTION:*:%cpchan: { ;RepeatText if ($readini($settings(chanoptions.txt),$iif($ini($settings(chanoptions.txt),#,0) != 0,#,Default),RepeatText)) { if ($nick !isop #) && ( %repeat == on ) { var %rp.repeats = rp. $+ $nick $+ . $+ $chan var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text if ( % [ $+ [ %rp.repeats ] ] == $null ) { set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.repeats ] ] 1 set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.text ] ] $1- } elseif ( % [ $+ [ %rp.text ] ] == $1- ) { inc % [ $+ [ %rp.repeats ] ] } elseif ( % [ $+ [ %rp.text ] ] != $1- ) { set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.text ] ] $1- set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.repeats ] ] 1 } if ( % [ $+ [ %rp.repeats ] ] > %limit.repeat ) { if ($nick isvoice $chan) { halt } if ($nick ishop $chan) { halt } if ($nick isop $chan) { halt } access $chan add deny $+(*!*, $Ial($nick).addr) $+ %capsbt # $nick 2 kick # $nick %repeatmsg $+ , deny time: $repkbt - %name unset % [ $+ [ %rp.repeats ] ] unset % [ $+ [ %rp.text ] ] } } } } on @*:NOTICE:*:%cpchan:{ ;RepeatText if ($readini($settings(chanoptions.txt),$iif($ini($settings(chanoptions.txt),#,0) != 0,#,Default),RepeatText)) { if ($nick !isop #) && ( %repeat == on ) { var %rp.repeats = rp. $+ $nick $+ . $+ $chan var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text if ( % [ $+ [ %rp.repeats ] ] == $null ) { set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.repeats ] ] 1 set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.text ] ] $1- } elseif ( % [ $+ [ %rp.text ] ] == $1- ) { inc % [ $+ [ %rp.repeats ] ] } elseif ( % [ $+ [ %rp.text ] ] != $1- ) { set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.text ] ] $1- set -u [ $+ [ %limit.seconds ] ] % [ $+ [ %rp.repeats ] ] 1 } if ( % [ $+ [ %rp.repeats ] ] > %limit.repeat ) { if ($nick isvoice $chan) { halt } if ($nick ishop $chan) { halt } if ($nick isop $chan) { halt } access $chan add deny $+(*!*, $Ial($nick).addr) $+ %capsbt # $nick 2 kick # $nick %repeatmsg $+ , deny time: $repkbt - %name unset % [ $+ [ %rp.repeats ] ] unset % [ $+ [ %rp.text ] ] } } } } Link to comment Share on other sites More sharing options...
av0ider Posted February 18, 2009 Report Share Posted February 18, 2009 This may sound a little stupid, but, why are you using a variable in the event? Link to comment Share on other sites More sharing options...
Guest Travis Posted February 18, 2009 Report Share Posted February 18, 2009 (edited) %cpchan is a room? Whats the variable set as? What a stupid question Nick!! Edited February 18, 2009 by Travis Link to comment Share on other sites More sharing options...
CharmedOne Posted February 18, 2009 Author Report Share Posted February 18, 2009 well with the variable there it DOES work for tho I do have my on even like this on @*:text:*:%cpchan: { I also have this in my variables %cpchan # i am just trying new things. Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted February 18, 2009 Report Share Posted February 18, 2009 That wont work because it doesn't appear the whole channel name is listed. And unless I'm wrong, Buzzen uses the %# prefix. Link to comment Share on other sites More sharing options...
Guest Travis Posted February 18, 2009 Report Share Posted February 18, 2009 The variable needs to be the room name, OR you can have a normal # in there like everyone else. Using a variable to return # is just ridiculous. Link to comment Share on other sites More sharing options...
CharmedOne Posted February 18, 2009 Author Report Share Posted February 18, 2009 my caps kicker has on @*:TEXT:*:%cpchan:{ in it & it works Link to comment Share on other sites More sharing options...
Guest Travis Posted February 18, 2009 Report Share Posted February 18, 2009 But it is very pointless to use a variable to return # ... Why not just use # ? :| Anyways , if it isnt your variable that is the issue, looking at your script the only other suggestions I can come up with are ... $readini($settings(chanoptions.txt),$iif($ini($settings(chanoptions.txt),#,0) != 0,#,Default),RepeatText) does this return $true? %repeat == on - is %repeat on? Link to comment Share on other sites More sharing options...
av0ider Posted February 18, 2009 Report Share Posted February 18, 2009 My suggestion is to delete the whole thing. :] Link to comment Share on other sites More sharing options...
Fanfare Posted February 18, 2009 Report Share Posted February 18, 2009 Why is that script so huge when it can be shorten to a few lines? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now