From b0ea0e9e9c1914f6ce791a6ccfded0ac3d1e32f2 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Thu, 7 Feb 2008 11:00:05 +0000 Subject: [PATCH] BUILD : 1.7.21 (1377) BUGS : 857 NOTES : Fixed the findchan() debug messages so you now have ubercool debug stuff when you enter debug level 3\! git-svn-id: svn://svn.anope.org/anope/trunk@1377 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1092 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + src/channels.c | 5 ++++- version.log | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 5412c8642..4d0bbc9c7 100644 --- a/Changes +++ b/Changes @@ -30,6 +30,7 @@ Anope Version S V N 02/05 F do_cmode() called without passing TS. [#820] 02/07 F do_sjoin() looking for NULL-nick sometimes with TS6. [#858] 02/07 F Oddity in do_cmode(). [#859] +02/07 F findchan() debug messages not being logical. [#857] Provided by Jan Milants - 2008 01/16 F Server traversion with next_server() failed to list all servers. [#831] diff --git a/src/channels.c b/src/channels.c index 97c6744e6..19d29a727 100644 --- a/src/channels.c +++ b/src/channels.c @@ -371,8 +371,11 @@ Channel *findchan(const char *chan) alog("debug: findchan(%p)", chan); c = chanlist[HASH(chan)]; while (c) { - if (stricmp(c->name, chan) == 0) + if (stricmp(c->name, chan) == 0) { + if (debug >= 3) + alog("debug: findchan(%s) -> %p", chan, (void *) c); return c; + } c = c->next; } if (debug >= 3) diff --git a/version.log b/version.log index f7fb17ff5..5348e27bb 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="21" VERSION_EXTRA="-svn" -VERSION_BUILD="1376" +VERSION_BUILD="1377" # $Log$ # +# BUILD : 1.7.21 (1377) +# BUGS : 857 +# NOTES : Fixed the findchan() debug messages so you now have ubercool debug stuff when you enter debug level 3\! +# # BUILD : 1.7.21 (1376) # BUGS : 859 # NOTES : Fixed a small oddity in do_cmode()