mIRC Home    About    Download    Register    News    Help

Print Thread
#146902 10/04/06 03:50 PM
Joined: Dec 2005
Posts: 3
M
mmkk Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2005
Posts: 3
i need a script that will check certain ip starting on join. if the users have that ip starting, it will shun and ban address for 180 sec with a notice but the script will ignore those who are serverop and voice members of the channel even they join with the same ip starting. this is what i was trying to do. any idea what is wrong here?
on @*:JOIN:#:{
if (*@85.* iswm $address) || (*@68.47.* iswm $address) || (*@193.* iswm $address) {
if (*@68.47.193.* iswm $address) || (*@68.47.147.* iswm $address) || (*@85.86.166.* iswm $address) ||(*@193.229.* iswm $address) || ($nick isop #) || ($nick isvoice #) return
else { shun $address 180 | ban -u180 # $address($nick, 14) | .notice $nick You aren't welcome! }
}
}

#146903 10/04/06 07:31 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Im pretty sure its becuase those members are not voiced or op at the moment they join the channel
This might work

Code:
on @*:JOIN:#:{
  if ((*@85.* iswm $address) || (*@68.47.* iswm $address) || (*@193.* iswm $address)) {
    if ((*@85.86.166.* !iswm $address) && (*@68.47.193.* !iswm $address) && (*@68.47.147.* !iswm $address) && (*@193.229.* !iswm $address)) {
      timer 1 6 if (( $nick isop $chan ) || ( $nick isvoice $chan )) $({,) halt $(},) $(|,) shun $address 180 $(|,) ban -u180 $chan $address($nick, 14) $(|,) .notice $nick You aren't welcome!
    }
  }
}


Simply waits 6 seconds for them to op or voice, then checks if they are, change the 6 to what ever is right for your channel. (if it works)
* the $({,) etc are to make multiple commands insdie a timer

#146904 11/04/06 08:09 PM
Joined: Dec 2005
Posts: 3
M
mmkk Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2005
Posts: 3
it doesn't work. it shuns and bans everyone just on join. it doesn't check those values and doesn't remove shun after 180 sec.

#146905 12/04/06 12:38 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
lets see your code, does it look exactly like mine?

Becuase at the worst mine should wait 6 seconds before banning anyone.


Link Copied to Clipboard