Page 1 of 1

litte question about /version meaning

Posted: Fri Jan 21, 2005 1:00 pm
by ShArDiCk
Hi,
a user of mine have asked to me how many kicks can do unreal at one time..

i've done /version on my unreal...
CMDS=KNOCK,MAP,DCCALLOW,USERIP SAFELIST HCN MAXCHANNELS=16 CHANLIMIT=#:16 MAXLIST=b:60,e:60 NICKLEN=30 CHANNELLEN=32 TOPICLEN=307 KICKLEN=307 AWAYLEN=307 MAXTARGETS=20 WALLCHOPS are supported by this server
WATCH=128 SILENCE=15 MODES=12 CHANTYPES=# PREFIX=(ohv)@%+ CHANMODES=beqa,kfL,l,psmntirRcOAQKVGCuzNSMT NETWORK=IRCLab CASEMAPPING=ascii EXTBAN=~,cqnr ELIST=MNUCT STATUSMSG=@%+ EXCEPTS are supported by this server
I've understood all values but i think that MAXTARGETS=20 is what i want. That's i can select 20 users at one time to perform an action like kicks,ban, de\voice, de\op, de\halfop and more?

Re: litte question about /version meaning

Posted: Fri Jan 21, 2005 4:55 pm
by codemastr
ShArDiCk wrote:I've understood all values but i think that MAXTARGETS=20 is what i want. That's i can select 20 users at one time to perform an action like kicks,ban, de\voice, de\op, de\halfop and more?
No. MAXTARGETS tells you how many targets a PRIVMSG can have, that's all.

As for kick, kick supports exactly 1 nickname. You can NOT specify a list of nicknames.

Posted: Fri Jan 21, 2005 11:33 pm
by aquanight
Hm, is there a reason unreal only allows 1 nick per KICK?

Posted: Fri Jan 21, 2005 11:48 pm
by Stealth
aquanight, of course! It is because they didn't feel like putting that in (or couldn't) :P

Posted: Sat Jan 22, 2005 4:59 am
by codemastr
aquanight wrote:Hm, is there a reason unreal only allows 1 nick per KICK?
Well, mainly because of confusion about it. RFC1459 says KICK can have one of the following syntaxes:
<channel> <user> [<comment>]
<channel>{,<channel>} <user>{,<user>} [<comment>]

Basically, it says that if we allow multiple users, we must also allow multiple channels. Unfortunately, it never explains how to interpret this! If I type /kick #chan1,#chan2 nick1,nick2 does that kick nick1 from #chan1 and #chan2 and nick2 from #chan1 and #chan2? Or does it kick nick1 from #chan1 and nick2 from #chan2? It doesn't really say.

Therefore, the way I see it, if I gave my own interpretation it would only lead to confusion since there will undoubtedly be another ircd that takes a different interpretation.

Posted: Sat Jan 22, 2005 6:51 am
by Stealth
Maybe it is meant to attempt to kick User1 and User2 from the specified channels.

Posted: Sat Jan 22, 2005 4:48 pm
by aquanight
Doesn't RFC define for one channel, many users? EG, kick #channel user1,user2,user3,etc reason ? To be honest I see no use for kicking from multiple channels at once, but multiple users can be nice sometimes.

*edit* RFC 2812 probably clears this up a bit:
3.2.8 Kick command

Command: KICK
Parameters: <channel> *( "," <channel> ) <user> *( "," <user> )
[<comment>]

The KICK command can be used to request the forced removal of a user
from a channel. It causes the <user> to PART from the <channel> by
force. For the message to be syntactically correct, there MUST be
either one channel parameter and multiple user parameter, or as many
channel parameters as there are user parameters. If a "comment" is
given, this will be sent instead of the default message, the nickname
of the user issuing the KICK.
"As many channel parmaeters as users" suggests that it pairs the user with the corresponding channel, eg KICK #chan1,#chan2,#chan3 user1,user2,user == KICK #chan1 user1 \ KICK #chan2 user2 \ KICK #chan3 user3. I know 281X was pretty much written only for IRCnet, but I have seen some of its things put in other ircds, for example, the @/=/* in the NAMES reply that indicates a secret/private/public channel was not in 1459. and ban/invite exempt (+e/+I) - though maybe someone else came up with those first, I dunno :) .

Posted: Sat Jan 22, 2005 5:21 pm
by codemastr
Yes, it *suggests* that, but even 2812 doesn't really come out and *say* that. It's less ambiguous, but it is still ambiguous.

Posted: Sat Jan 22, 2005 10:05 pm
by Caedmon
Maybe I'm not getting it, but from the quote of 2812 there..
For the message to be syntactically correct, there MUST be
either one channel parameter and multiple user parameter, or as many
channel parameters as there are user parameters.
^ Looks like it does -say- it rather than suggest it?

Posted: Sat Jan 22, 2005 10:22 pm
by codemastr
It says what the syntax is, it doesn't say what it means:
or as many channel parameters as there are user parameters.
It *suggests* that:
/kick #chan1,#chan2 nick1,nick2
means kick nick1 from #chan1 and nick2 from #chan2. However, it doesn't say that anywhere.

Posted: Sun Jan 23, 2005 4:45 pm
by aquanight
Well what other interpretation would actually require as many channels as users? Anyway, like I said, I might find the one-channel, many-users useful, but for someone like me who can only really pay attention to one channel at a time, I don't think I'd ever need the many-channels, many-users thing.