diff options
author | keeper keeper@31f1291d-b8d6-0310-a050-a5561fc1590b <keeper keeper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-08-10 17:22:47 +0000 |
---|---|---|
committer | keeper keeper@31f1291d-b8d6-0310-a050-a5561fc1590b <keeper keeper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-08-10 17:22:47 +0000 |
commit | 8da5da23a9529e18ea15779700b6c97fce10ee66 (patch) | |
tree | b7eb91b3f5a70c816142071241cc06e2f355503e /src/messages.c | |
parent | ebe870906bb0820e9efb96c20832d40c6343f4af (diff) |
BUILD : 1.7.5 (316) BUGS : 131 NOTES : Fixed bugs in previous BotServ buffer fix.
git-svn-id: svn://svn.anope.org/anope/trunk@316 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@194 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/messages.c')
-rw-r--r-- | src/messages.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/messages.c b/src/messages.c index 9e5d4466b..eb83909b2 100644 --- a/src/messages.c +++ b/src/messages.c @@ -577,6 +577,7 @@ static int m_part(char *source, int ac, char **av) static int m_privmsg(char *source, int ac, char **av) { char *s; + char *buf; time_t starttime, stoptime; /* When processing started and finished */ BotInfo *bi; @@ -596,8 +597,12 @@ static int m_privmsg(char *source, int ac, char **av) if (*av[0] == '#') { if (s_BotServ && (ci = cs_findchan(av[0]))) - if (!(ci->flags & CI_VERBOTEN) && ci->c && ci->bi) /* Some paranoia checks */ - botchanmsgs(u, ci, av[1]); + if (!(ci->flags & CI_VERBOTEN) && ci->c && ci->bi) + /* Some paranoia checks */ + /* Copy the message to a temp. variable, otherwise botchanmsgs would break the buffer for modules -Keeper */ + buf = sstrdup(av[1]); + botchanmsgs(u, ci, buf); + free(buf); } else { /* Check if we should ignore. Operators always get through. */ |