mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
The default modes in mirc channel central:
Code:
tnimklps

But i would like to extend this. As for the network im on have the modes:
Code:
//echo -a $chanmodes give me
b,k,lL,acimnprstzCMNOQSTZ

How can i get the other modes not suported by mirc channel central? I dont know how i can filter out the modes the best/fastest way, i dont know regex so no idea i going there. I want to load the not default modes to a dialog.

Thnx in advance.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Why not create your own alias (and use it under Options > Mouse) or replace the /channel command itself and list them all in one new dialog? You'd then need to display all $chanmodes in it and check the checkboxes for the active modes using $chan($chan).mode

mIRC sends MODE $chan +b to the server to fill the ban list (raw 367) and when the user clicks the Excepts or Invites button it sends MODE $chan +e (reply is raw 348) and MODE $chan +I (reply is raw 346).

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Code:
$remove($chanmodes,$chr(44),tnimklps)


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Why didnt i think about $remove(), thnx :P


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard