Eggdev: [Bug 422] New:

bugzilla-daemon at bugzilla-daemon at
Sat Nov 13 11:57:35 CST 2004

channel prefix bug in src/mod/irc.mod/chan.c?
X-Bugzilla-Reason: AssignedTo

                    channel prefix bug in src/mod/irc.mod/chan.c?
           Product: Eggdrop 1.6
           Version: 1.6.17
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Module: irc.mod
        AssignedTo: eggdev at
        ReportedBy: zathras3 at

Problem: if a channel does not start with one of these characters: '&#!+@$' PRIV
messages in the channel are not processed (others are) (CHANMETA has been
updated to include the new prefix)

in src/mod/irc.mod/chan.c
static int gotmsg(char *from, char *msg)

I think the line:

if (!strchr("&#!+@$", msg[0]))

should be:

if (!strchr(CHANMETA "@", msg[0]))

(Similar to the line in static int gotnotice(char *from, char *msg))
(or both should be 'if (!strchr(CHANMETA, msg[0]))' ?)

 diff -u ./src/mod/irc.mod/chan.c~ ./src/mod/irc.mod/chan.c
--- ./src/mod/irc.mod/chan.c~   2004-06-27 12:26:51.000000000 -0500
+++ ./src/mod/irc.mod/chan.c    2004-11-12 01:18:45.000000000 -0500
@@ -2195,7 +2195,7 @@
   memberlist *m;
   struct flag_record fr = { FR_GLOBAL | FR_CHAN, 0, 0, 0, 0, 0 };

-  if (!strchr("&#!+@$", msg[0]))
+  if (!strchr(CHANMETA "@", msg[0]))
     return 0;
   ignoring = match_ignore(from);
   to = newsplit(&msg);

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Eggdev mailing list