]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Drop setter is empty check when displaying listmodes
authorAttila Molnar <attilamolnar@hush.com>
Tue, 16 Dec 2014 15:45:06 +0000 (16:45 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 16 Dec 2014 15:45:06 +0000 (16:45 +0100)
The setter cannot be empty unless the nick of a client is empty which is not possible

src/listmode.cpp

index 3feb42777ccfc98332ca0ae2a856cf8e14f04fe6..1147a4ef2a7d6adfdb8de59bd5d7168264d5b90f 100644 (file)
@@ -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());