mIRC Home    About    Download    Register    News    Help

Print Thread
#64795 22/12/03 01:05 PM
Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
Im working on a conversion script changes the normal outputs, Im doing pretty good, but Id like to list the affected users when a ban is set. I know Ill have to set the banmask to a variable and loop it comparing to the ial but IM lost could someone help out please?


chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
Do you mean something like change the colour of their nick if they are banned on the channel?

Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
No right now I have it
(06:48:20 A) [Ban] Static banned: *!*@*.blah.net
Im trying to get
(06:48:20 A) [Ban] Static banned: *!*@*.blah.net - Static & HowdyDoody were banned


chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
Well, i guess you have it figured out, if you have on ban triggering this and not on rawmode...
but say you have an alias like
Code:
alias nicks {
  var %x = 1 , %n
  while ($ialchan($1,$2,%x).nick) {
    %n = %n $ifmatch
    inc %x
  }
  return %n
}

use would be $nicks(<mask>,<chan>)
then you have your theme part, like:
Code:
on ^*:ban:#:echo 3 -t # * $nick is banning $banmask : takes effect on $nicks($banmask,#) | haltdef

something like that.

Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
That will work if the whole banmask is banned but not if just say .aol.com is banned but thanks I want it to know that to
EDIT
Works thanks

Last edited by Static; 22/12/03 01:43 PM.

chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
I asked a similar question quite a while back, so have a look at this thread:


Clients affected by... script


--------
mIRC - fun for all the family (except grandma and grandpa)
Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
Thanks that is better!


chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv

Link Copied to Clipboard