Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Fri, 9 Jun 2000 19:18:12 +0000 (19:18 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Fri, 9 Jun 2000 19:18:12 +0000 (19:18 +0000)
Log message:

* ircd/channel.c (mode_parse_client): don't send warning if
there's not enough arguments for a +/-o/v; means the habit of
doing "/mode #channel +oooooo bob" doesn't result in a bunch of
error messages

Status: Compile-checked
Testing needed:

Make sure "/mode #channel +oooooo bob" doesn't result in five warnings
about not enough parameters ;)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@250 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/channel.c

index 70d34d118968d978f86a1d12e1c7cb8e10e851a2..0323d8c682d3aa373ea851388c79b6636045d3be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-06-09  Kevin L. Mitchell  <klmitch@mit.edu>
+
+       * ircd/channel.c (mode_parse_client): don't send warning if
+       there's not enough arguments for a +/-o/v; means the habit of
+       doing "/mode #channel +oooooo bob" doesn't result in a bunch of
+       error messages
+
 2000-06-04  Greg Sikorski <gte@atomicrevs.demon.co.uk>
 
        * ircd/m_names.c: Re-factor code to remove unneccessary
 #
 # ChangeLog for ircu2.10.11
 #
-# $Id: ChangeLog,v 1.144 2000-06-04 05:19:29 gte Exp $
+# $Id: ChangeLog,v 1.145 2000-06-09 19:18:11 kev Exp $
 #
 # Insert new changes at beginning of the change list.
 #
index 4517ecec71b1884de5129a8a303e276b2ca3283a..560bcadb8ca93432ba34d3fa649dc3b26410b2b5 100644 (file)
@@ -3564,13 +3564,8 @@ mode_parse_client(struct ParseState *state, int *flag_p)
   if (MyUser(state->sptr) && state->max_args <= 0) /* drop if too many args */
     return;
 
-  if (state->parc <= 0) { /* warn if not enough args */
-    if (MyUser(state->sptr))
-      need_more_params(state->sptr, state->dir == MODE_ADD ?
-                      (flag_p[0] == MODE_CHANOP ? "MODE +o" : "MODE +v") :
-                      (flag_p[0] == MODE_CHANOP ? "MODE -o" : "MODE -v"));
+  if (state->parc <= 0) /* return if not enough args */
     return;
-  }
 
   t_str = state->parv[state->args_used++]; /* grab arg */
   state->parc--;