We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7eb74d commit d3e0eb5Copy full SHA for d3e0eb5
1 file changed
src/mod/irc.mod/irc.c
@@ -296,9 +296,16 @@ static void refresh_who_chan(char *channame)
296
static void newmask(masklist *m, char *s, char *who)
297
{
298
for (; m && m->mask[0] && rfc_casecmp(m->mask, s); m = m->next);
299
+ if (!m) {
300
+ putlog(LOG_MISC, "*", "BUG!! newmask(): m == NULL.\n"
301
+ " This is a known bug we haven't fixed yet. If this\n"
302
+ " bot is the newest eggdrop version available and you\n"
303
+ " know a *reliable* way to reproduce the bug, please\n"
304
+ " contact us - we need your help!\n");
305
+ return;
306
+ }
307
if (m->mask[0])
308
return; /* Already existent mask */
-
309
m->next = (masklist *) channel_malloc(sizeof(masklist));
310
m->next->next = NULL;
311
m->next->mask = (char *) channel_malloc(1);
0 commit comments