Module: ngircd.git Branch: master Commit: 4a5dfcc3ace54de033f16503065831ed62433b2d URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=4a5df...
Author: Florian Westphal fw@strlen.de Date: Fri Dec 31 11:32:20 2010 +0100
channel: fix confusing "adding to invite list" debug output
adding entries to ban list produced 'invite list' debug output...
---
src/ngircd/channel.c | 2 ++ src/ngircd/lists.c | 1 - 2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index edbbc38..e49e5a9 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -989,6 +989,7 @@ GLOBAL bool Channel_AddBan(CHANNEL *c, const char *mask ) { struct list_head *h = Channel_GetListBans(c); + LogDebug("Adding "%s" to "%s" %s list", mask, Channel_Name(c), "ban"); return Lists_Add(h, mask, false); }
@@ -997,6 +998,7 @@ GLOBAL bool Channel_AddInvite(CHANNEL *c, const char *mask, bool onlyonce) { struct list_head *h = Channel_GetListInvites(c); + LogDebug("Adding "%s" to "%s" %s list", mask, Channel_Name(c), "invite"); return Lists_Add(h, mask, onlyonce); }
diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c index 363c62d..58c5d16 100644 --- a/src/ngircd/lists.c +++ b/src/ngircd/lists.c @@ -85,7 +85,6 @@ Lists_Add(struct list_head *header, const char *Mask, bool OnlyOnce ) newelem->next = e; header->first = newelem;
- LogDebug("Added "%s" to invite list", Mask); return true; }
ngircd-commits@lists.barton.de