Author: Diane Bruce <db@tfm.com> (by way of Kev <klmitch@mit.edu>)
authorKevin L. Mitchell <klmitch@mit.edu>
Fri, 15 Dec 2000 01:14:59 +0000 (01:14 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Fri, 15 Dec 2000 01:14:59 +0000 (01:14 +0000)
commiteeafbafcedbd5e3f670e8b1010591dc49bf2bc84
treeea9cacdbd6ec1f6e6c67c0adc2665640d603ca69
parenteef0266ff4630479b9fafec826c249564125b948
Author: Diane Bruce <db@tfm.com> (by way of Kev <klmitch@mit.edu>)
Log message:

- rfc1489 is ambigous about how to handle ISON. The example shows
  no ':' used in the command, which means each nick would appear in
  parv[1] to parv[n].  After discussion with hop on efnet/undernet
  it became apparent there is a problem. ircnet gets it right, but they
  loop over all parv as well as strtoken'ing on ' '
  My suggested fix is to loop over each parv[1] to parc, and scanning
  each one for ' '. I prefer to use parc rather than relying on a parv[]
  being NULL, but you could do a slightly more efficient version that way.

- Trailing spaces are removed, apparently that breaks some ircII clients.
  epic according to hoppie, is ok, but still...

(This patch was applied by hand because of the number of changes involved;
hope I got the trailing space behavior correct--I removed all trailing
spaces. -Kev)

Testing:

I tested it; it doesn't crash the server.  If ISON gets more than the
maximum number of arguments before hitting a colon, the server tries to
look up :<nick>, but this isn't much of a suprise.  Looks nice :)

 -Kev

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@338 c9e4aea6-c8fd-4c43-8297-357d70d61c8c
ChangeLog
ircd/m_ison.c