channel: fix confusing "adding to invite list" debug output
adding entries to ban list produced 'invite list' debug output...
This commit is contained in:
parent
f37e495a2b
commit
4a5dfcc3ac
|
@ -989,6 +989,7 @@ GLOBAL bool
|
||||||
Channel_AddBan(CHANNEL *c, const char *mask )
|
Channel_AddBan(CHANNEL *c, const char *mask )
|
||||||
{
|
{
|
||||||
struct list_head *h = Channel_GetListBans(c);
|
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);
|
return Lists_Add(h, mask, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -997,6 +998,7 @@ GLOBAL bool
|
||||||
Channel_AddInvite(CHANNEL *c, const char *mask, bool onlyonce)
|
Channel_AddInvite(CHANNEL *c, const char *mask, bool onlyonce)
|
||||||
{
|
{
|
||||||
struct list_head *h = Channel_GetListInvites(c);
|
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);
|
return Lists_Add(h, mask, onlyonce);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,6 @@ Lists_Add(struct list_head *header, const char *Mask, bool OnlyOnce )
|
||||||
newelem->next = e;
|
newelem->next = e;
|
||||||
header->first = newelem;
|
header->first = newelem;
|
||||||
|
|
||||||
LogDebug("Added \"%s\" to invite list", Mask);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue