mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2005
Posts: 192
Brax Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Jan 2005
Posts: 192
$chan(N/#).mode doesn't return complete mode line.

So far I have seen this behavior with Unreal specific channel modes f and L

To illustrate:
TestUser sets mode: +ntlLkf 100 #test2 key [1c,2j,3k,4m,5n,6t]:30

//echo -a Modes: $chan($chan).mode
returns: Modes: +fLnrtlk 100 key
No values for +f and +L eventhough the mode itsself is seen.

Using /mode # will return proper set of modes and values
#test +ntlkLf 100 key #test [1c,2j,3k,4m,5n,6t]:30


Tested with v7.42


echo -a $signature
Joined: Dec 2002
Posts: 5,408
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,408
Thanks for your bug report. I think this issue has been discussed before but I was not able to find the post. To confirm, is this the command you are typing in the channel:

/mode #test +ntlkLf 100 key #test [1c,2j,3k,4m,5n,6t]:30

I tried the above on a test channel and the server said that I needed to be a channel owner. Is there another command I can use that reproduces the issue or a similar issue that does not require channel ownership?

In addition, if you turn on debugging with "/debug on" to output raw messages to a debug.log file, can you include the lines in the debug.log file to/from the server during this mode? Thanks.

Joined: Jan 2005
Posts: 192
Brax Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Jan 2005
Posts: 192
Yes the mode +L #chan requires channel owner privileges (Basically it defines Linked channel to which to send users when channel limit +l was reached).
Mode +f should be easier to test since this is limited to all channel ops.
ie: /mode #test +f 10j:30

Unreal has a quite good section describing the antiflood feature in detail as well: https://www.unrealircd.org/files/docs/unreal32docs.html#feature_antiflood

mIRC itsself can deal with the mode just fine. It shows up when you join the channel, when someone sets it or unsets it.
It just seems that $chan(#).mode is unable to return the parameters for other modes than +k and +l
In addition I also noticed that the parameters for +f and +L wont show up in the titlebar either (while limit and key show up just fine)

So channel window titlebar reads: #test (Network, Nick) [1] [+fLnrtlk 100 key]

Debug output for /mode #test +ntlkLf 100 key #test2 [1c,2j,3k,4m,5n,6t]:30
Quote:

<- :Brax!Barco@Brax.-address- MODE #test +ntlkLf 100 key #test2 [1c,2j,3k,4m,5n,6t]:30
-> irc.-address- MODE #test
<- :irc.-address- 324 Brax #test +ntrlkLf 100 key #test2 [1c,2j,3k,4m,5n,6t]:30
<- :irc.-address- 329 Brax #test 1437987097


mIRC also parses it fine and shows on channel:
Quote:
#test +ntrlkLf 100 key #test2 [1c,2j,3k,4m,5n,6t]:30
-
#test created on Mon Jul 27 11:51:37 2015



Also I noticed few topics here on same/similar issues but they all seemed to be sort of open ended.
https://forums.mirc.com/ubbthreads.php/topics/241940
https://forums.mirc.com/ubbthreads.php/topics/230583

And maybe even this: https://forums.mirc.com/ubbthreads.php/topics/242701

Last edited by Brax; 27/07/15 09:35 AM. Reason: Added one more topic on that issue.

echo -a $signature
Joined: Dec 2002
Posts: 5,408
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,408
Thanks, I remember the issue now. I also found one of my replies to a similar issue here. The main issue is that the current $chan().mode was hard-coded to support the .key and .limit parameters, so support for generic parameters per mode will require a redesign. This will also require a dependency on the numeric 005 CHANMODES token being set correctly. This is on my to-do list.

Joined: Jan 2005
Posts: 192
Brax Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Jan 2005
Posts: 192
Ok, then there is only a hope that your to-do list is not too long. wink

Until then I guess I will just try to overcome this limitation with other methods.


echo -a $signature

Link Copied to Clipboard