mIRC Home    About    Download    Register    News    Help

Topic Options
#146259 - 02/04/06 06:22 AM Identifier for extra channel mode parameters
Murarth Offline
Self-satisified door

Registered: 02/04/06
Posts: 3
$chan().mode should return the extra parameters for channel modes.
I know there's a $chan().key and $chan().limit but there is no way to reference the other chanmodes which some IRCd's may have other than waiting for the raw response to the /mode command and setting a variable.

Top
#146260 - 02/04/06 03:13 PM Re: Identifier for extra channel mode parameters
mIRCManiac Offline
Hoopy frood

Registered: 05/02/05
Posts: 681
Loc: Your dreams ;)
$chan().mode already returns all currently set channel modes with parameters.
_________________________
mIRCManiac

Top
#146261 - 02/04/06 10:09 PM Re: Identifier for extra channel mode parameters
Murarth Offline
Self-satisified door

Registered: 02/04/06
Posts: 3
Quote:
$chan().mode already returns all currently set channel modes with parameters.
No, it doesn't.
For example, there are some servers which have a flood protection channel mode (+f) that requires you to specify the parameters of the protection. If I set +f with parameters in a channel, $chan().mode would only return +f. The parameters afterward can only be found by using /mode #channel.

Top
#146262 - 03/04/06 01:36 AM Re: Identifier for extra channel mode parameters
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
I'd call this a bug in mirc. I connected to a server running UnrealIRCD and mode f was correctly listed in the 2nd (type B) field of the CHANMODES token in raw 005. Yet when I created a channel and set mode +f [10j]:15, mirc didn't add the parameter ([10j]:15) in the titlebar or in $chan().mode. However, when I set +k somekey (k being of the exact same type as f) mirc updated the titlebar and $chan().mode with the correct key information. So it seems mode f isn't interpreted correctly as a type B mode, even though mirc has been provided with all the necessary information for this. The same happens with the type C mode j on UnrealIRCD: titlebar/$chan().mode aren't updated correctly by a mode j change, however they are updated correctly by a mode l change (same type of mode).
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#146263 - 03/04/06 01:41 AM Re: Identifier for extra channel mode parameters
symphony Offline
Fjord artisan

Registered: 14/01/06
Posts: 468
Loc: Mars
Same result for me, I believe it is a bug yes.
_________________________
Excalibur on DALnet @#mIRC @#help
http://www.mirc.org

Top
#146264 - 03/04/06 02:15 AM Re: Identifier for extra channel mode parameters
Murarth Offline
Self-satisified door

Registered: 02/04/06
Posts: 3
Oh. Well, I'm not certain of the rules here. So, if it's a bug, should I post it again in the bug section and ask for this thread to be deleted or should I wait for a mod to come along and move it?

Top
#146265 - 03/04/06 02:19 AM Re: Identifier for extra channel mode parameters
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
I'm sure a mod will take care of it *looks at Mentality*

* Mentality grins


Edited by Mentality (03/04/06 07:14 AM)
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#146266 - 03/04/06 03:48 AM Re: Identifier for extra channel mode parameters
mIRCManiac Offline
Hoopy frood

Registered: 05/02/05
Posts: 681
Loc: Your dreams ;)
Yup did it here too and I would say it's a bug. $chan().mode
should return exactly what you see with /mode #chan
_________________________
mIRCManiac

Top