mIRC Home    About    Download    Register    News    Help

Print Thread
#79782 18/04/04 01:39 PM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
I'm trying to make a "shitlist" remote.
This is what I've got so far...
Code:
on shitlist:JOIN:#:{
  if ($me isop #) {
    ban # $ulist($maddress,1)
    kick # $nick $iif($ulist($maddress,1).info,$ifmatch,shitlisted)
  }
}

The problem is I can only put the user on shitlist on all channels. How can I make it so I can specify channels where he is shitlisted?


__________________________
Curiosity killed the cat.
#79783 18/04/04 08:35 PM
Joined: Nov 2003
Posts: 67
C
Babel fish
Offline
Babel fish
C
Joined: Nov 2003
Posts: 67
you set a var with all channels that you want to trigger the event /set %channels #mirc;#scripting;#sex;#teens;#xD

Then:
Code:
ON @shitlist:JOIN:#:{
  if ($istok(%channels,$chan,59)) {
  ;you can use if ($chan isin %channels) I prefer to use $istok, for more accurace
    ban # $ulist($maddress,1)    
    kick # $nick $iif($ulist($maddress,1).info,$ifmatch,shitlisted)  
  }
}


I donĀ“t test if the code works, I only edit the code you paste



irc.universochat.net
#escripting
#79784 18/04/04 09:18 PM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
Well, I want to specify different channels for each user.


__________________________
Curiosity killed the cat.
#79785 19/04/04 08:52 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Save the channels to be kicked from in %vars or a hash table.
%slist.[color:blue]*!*@*.aol.com [color:Darkslateblue]#channel1 #chanel5 #another[/color][/color]
Code:
on @shitlist:JOIN:#:{
  if $istok(%slist. [ $+ [ $maddress ] ],#,32) {
    ban # $maddress
    kick # $nick $iif($ulist($maddress).info,$ifmatch,shitlisted)
  }
}


Link Copied to Clipboard