]> arthur.barton.de Git - ngircd-alex.git/commitdiff
channel: fix confusing "adding to invite list" debug output
authorFlorian Westphal <fw@strlen.de>
Fri, 31 Dec 2010 10:32:20 +0000 (11:32 +0100)
committerFlorian Westphal <fw@strlen.de>
Fri, 31 Dec 2010 10:35:40 +0000 (11:35 +0100)
adding entries to ban list produced 'invite list' debug output...

src/ngircd/channel.c
src/ngircd/lists.c

index edbbc38bee3412d0c336833f34393bebab5323c8..e49e5a9a6127cc3f34771af77af096fc6d951eb6 100644 (file)
@@ -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);
 }
 
index 363c62dbeae305cf460b3203bcf846afc2804037..58c5d160df0913199c98547973a48cc97a4f69f0 100644 (file)
@@ -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;
 }