From aa52d94df4726f1f039e9ee3f20be665f65014a4 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 1 Oct 2006 20:14:33 +0000 Subject: BUILD : 1.7.15 (1163) BUGS : NOTES : Various small changes to documentation and example config (and removing void \r from sources) git-svn-id: svn://svn.anope.org/anope/trunk@1163 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@885 5417fbe8-f217-4b02-8779-1006273d7864 --- src/init.c | 2 +- src/misc.c | 40 ++++++++++++++++++++-------------------- src/process.c | 8 ++++---- 3 files changed, 25 insertions(+), 25 deletions(-) (limited to 'src') diff --git a/src/init.c b/src/init.c index b8ae80903..6f78e018c 100644 --- a/src/init.c +++ b/src/init.c @@ -328,7 +328,7 @@ static int parse_options(int ac, char **av) } else if (strcmp(s, "nothird") == 0) { nothird = 1; } else if (strcmp(s, "protocoldebug") == 0) { - protocoldebug = 1; + protocoldebug = 1; } else if (strcmp(s, "support") == 0) { nofork = 1; debug++; diff --git a/src/misc.c b/src/misc.c index 68db04148..cf684870c 100644 --- a/src/misc.c +++ b/src/misc.c @@ -751,26 +751,26 @@ char *myStrSubString(const char *src, int start, int end) /*************************************************************************/ -void protocol_debug(char *source, char *cmd, int argc, char **argv) -{ - int i; - - if (protocoldebug) { - if (source) - alog("debug: Source %s", source); - if (cmd) - alog("debug: Token %s", cmd); - if (argc) { - for (i = 0; i < argc; i++) { - alog("debug: av[%d] = %s", i, argv[i]); - } - } else { - alog("debug: av[0] = NULL"); - } - } - return; -} - +void protocol_debug(char *source, char *cmd, int argc, char **argv) +{ + int i; + + if (protocoldebug) { + if (source) + alog("debug: Source %s", source); + if (cmd) + alog("debug: Token %s", cmd); + if (argc) { + for (i = 0; i < argc; i++) { + alog("debug: av[%d] = %s", i, argv[i]); + } + } else { + alog("debug: av[0] = NULL"); + } + } + return; +} + /*************************************************************************/ /** diff --git a/src/process.c b/src/process.c index a89804992..2834d0794 100644 --- a/src/process.c +++ b/src/process.c @@ -232,10 +232,10 @@ void process() 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) { + if (protocoldebug) { + protocol_debug(source, cmd, ac, av); + } + if (mod_current_buffer) { free(mod_current_buffer); } /* fix to moduleGetLastBuffer() bug 296 */ -- cgit