aboutsummaryrefslogtreecommitdiff
path: root/src/listmode.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-12-16 16:45:06 +0100
committerGravatar Attila Molnar2014-12-16 16:45:06 +0100
commit64ccea389cc5a71badc9f8d0ea6731750ed4fde6 (patch)
tree6735afe62008b3018e000a17bfd0636f11012bf6 /src/listmode.cpp
parentDisplay listmodes in the order in which they are in the container instead of ... (diff)
Drop setter is empty check when displaying listmodes
The setter cannot be empty unless the nick of a client is empty which is not possible
Diffstat (limited to 'src/listmode.cpp')
-rw-r--r--src/listmode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp
index 3feb42777..1147a4ef2 100644
--- a/src/listmode.cpp
+++ b/src/listmode.cpp
@@ -34,7 +34,7 @@ void ListModeBase::DisplayList(User* user, Channel* channel)
{
for (ModeList::const_iterator it = cd->list.begin(); it != cd->list.end(); ++it)
{
- user->WriteNumeric(listnumeric, "%s %s %s %lu", channel->name.c_str(), it->mask.c_str(), (!it->setter.empty() ? it->setter.c_str() : ServerInstance->Config->ServerName.c_str()), (unsigned long) it->time);
+ user->WriteNumeric(listnumeric, "%s %s %s %lu", channel->name.c_str(), it->mask.c_str(), it->setter.c_str(), (unsigned long) it->time);
}
}
user->WriteNumeric(endoflistnumeric, "%s :%s", channel->name.c_str(), endofliststring.c_str());