1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 11:03:14 +02:00

Remove unused anope_set_mod_current_buffer(), noted by Naram.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1280 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-09-30 22:25:04 +00:00
parent f70f57219f
commit bbaba3e003
3 changed files with 12 additions and 38 deletions
+12 -29
View File
@@ -351,40 +351,23 @@ void process()
doCleanBuffer((char *) buf);
/* Split the buffer into pieces. */
if (*buf == ':') {
s = strpbrk(buf, " ");
if (!s)
return;
return;
*s = 0;
while (isspace(*++s));
strscpy(source, buf + 1, sizeof(source));
memmove(buf, s, strlen(s) + 1);
} else {
*source = 0;
}
if (!*buf)
return;
s = strpbrk(buf, " ");
if (s) {
*s = 0;
while (isspace(*++s));
} else
s = buf + strlen(buf);
strscpy(cmd, buf, sizeof(cmd));
ac = split_buf(s, &av, 1);
if (protocoldebug) {
protocol_debug(source, cmd, ac, av);
}
if (mod_current_buffer) {
free(mod_current_buffer);
}
/* fix to moduleGetLastBuffer() bug 296 */
/* old logic was that since its meant for PRIVMSG that we would get
the NICK as AV[0] and the rest would be in av[1], however on Bahamut
*s = 0;
while (isspace(*++s));
strscpy(source, buf + 1, sizeof(source));
memmove(buf, s, strlen(s) + 1);
} else {
*source = 0;
to the NICK and thus AV[0] is the message. The new logic is to check
}
if (!*buf)
return;
value from AV[1] else just assign av[0] - TSL */
s = strpbrk(buf, " ");
if (s) {
*s = 0;
while (isspace(*++s));
} else
s = buf + strlen(buf);
strscpy(cmd, buf, sizeof(cmd));