mIRC Home    About    Download    Register    News    Help

Print Thread
Get channel modes from server. #240142 29/12/12 01:25 PM
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,.) }
Re: Get channel modes from server. [Re: sparta] #240145 29/12/12 05:31 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
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).

Re: Get channel modes from server. [Re: sparta] #240146 29/12/12 07:50 PM
Joined: Jul 2006
Posts: 3,924
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,924
Code:
$remove($chanmodes,$chr(44),tnimklps)


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Re: Get channel modes from server. [Re: Wims] #240149 29/12/12 09:36 PM
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,.) }