Set segv_module before calling bot chan messages
This commit is contained in:
parent
d455543fdb
commit
2b4e42e1c0
3 changed files with 4 additions and 4 deletions
|
@ -28,8 +28,8 @@ NeoStats ChangeLog - Anything we add/remove/fix/change is in here (even our rant
|
|||
All such calls renamed to m_xxx e.g. m_nick to match ircd naming conventions
|
||||
so we can easily find in ircd source. Most of these calls now just need to format
|
||||
the incoming text and let the NeoStats core process it (M)
|
||||
- Added NICKV2 and UMODE2 support to Unreal
|
||||
-
|
||||
- Added NICKV2 and UMODE2 support to Unreal (M)
|
||||
- Set segv_module before calling bot chan messages (M)
|
||||
|
||||
* NeoStats * Fish (F) * Version 2.5.14
|
||||
- Fix a bug with HostServ unable to load the database
|
||||
|
|
2
dl.c
2
dl.c
|
@ -790,7 +790,9 @@ bot_chan_message (char *origin, char **av, int ac)
|
|||
mod_usr = findbot (lnode_get (bmn));
|
||||
if (mod_usr->chanfunc) {
|
||||
nlog (LOG_DEBUG2, LOG_CORE, "bot_chan_message: running module for chanmessage %s", av[0]);
|
||||
SET_SEGV_INMODULE(mod_usr->modname);
|
||||
mod_usr->chanfunc (origin, av, ac);
|
||||
CLEAR_SEGV_INMODULE();
|
||||
}
|
||||
bmn = list_next (mod_chan_bot->bots, bmn);
|
||||
}
|
||||
|
|
2
ircd.c
2
ircd.c
|
@ -532,7 +532,6 @@ m_privmsg (int cmdptr, char* origin, char **av, int ac)
|
|||
}
|
||||
/* its to the Internal Services Bot */
|
||||
servicesbot (origin, av, ac);
|
||||
SET_SEGV_LOCATION();
|
||||
return;
|
||||
} else {
|
||||
mod_usr = findbot (av[0]);
|
||||
|
@ -566,7 +565,6 @@ m_privmsg (int cmdptr, char* origin, char **av, int ac)
|
|||
}
|
||||
}
|
||||
CLEAR_SEGV_INMODULE();
|
||||
SET_SEGV_LOCATION();
|
||||
return;
|
||||
} else {
|
||||
bot_chan_message (origin, av, ac);
|
||||
|
|
Reference in a new issue