+- Fixed /mode # + bug reported by PhatNet/Mind

This commit is contained in:
stskeeps 2000-09-09 20:34:16 +00:00
parent 8f561e9337
commit 5392dd8acf
2 changed files with 5 additions and 0 deletions

View file

@ -623,3 +623,4 @@
- Fixed a typo in s_err.c reported by TRON
- Fixed more -Wall warnings
- Added #define LIST_SHOW_MODES to show channel modes in a /list (NOTE: only shows modes, not params)
- Fixed /mode # + bug reported by PhatNet/Mind

View file

@ -1317,6 +1317,10 @@ void do_mode(chptr, cptr, sptr, parc, parv, sendts, samode)
sptr = &me;
sendts = 0;
}
/* Should stop null modes */
if (*(mode_buf + 1) == '\0')
return;
sendto_channel_butserv(chptr, sptr, ":%s MODE %s %s %s",
sptr->name, chptr->chname, mode_buf, parabuf);
if (IsServer(sptr) && sendts != -1)