CVS: bopm/src opercmd.c,1.11,1.12
[email protected] (Erik Fears)
| Newsgroups | gmane.network.irc.bopm |
|---|---|
| Message-ID | <[email protected]> |
Update of /data/cvs/bopm/src
In directory nubian.blitzed.org:/tmp/cvs-serv47615
Modified Files:
opercmd.c
Log Message:
Fixed bug in userhost parsing where BOPM would not clear the queue of commands from non-opered clients.
Index: opercmd.c
===================================================================
RCS file: /data/cvs/bopm/src/opercmd.c,v
retrieving revision 1.11
retrieving revision 1.12
diff --unified=6 -r1.11 -r1.12
--- opercmd.c 22 Jun 2003 13:19:39 -0000 1.11
+++ opercmd.c 25 Oct 2004 05:21:05 -0000 1.12
@@ -304,13 +304,16 @@
/* Operators have a * flag in a USERHOST reply */
if (*(tmp - 1) == '*')
oper = 1;
/* Null terminate it so tmp = the oper's nick */
- *(--tmp) = '\0';
+ if(oper)
+ *(--tmp) = '\0';
+ else
+ *(tmp) = '\0';
/* Find any queued commands that match this user */
LIST_FOREACH_SAFE(node, next, COMMANDS->head)
{
cs = (struct Command *) node->data;