diff options
-rw-r--r-- | include/u_listmode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h index 69ee4f668..358ccbf83 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -178,7 +178,7 @@ class ListModeBase : public ModeHandler { for (modelist::reverse_iterator it = el->rbegin(); it != el->rend(); ++it) { - user->WriteNumeric(listnumeric, "%s %s %s %s %s", user->nick.c_str(), channel->name.c_str(), it->mask.c_str(), it->nick.c_str(), it->time.c_str()); + user->WriteNumeric(listnumeric, "%s %s %s %s %s", user->nick.c_str(), channel->name.c_str(), it->mask.c_str(), (it->nick.length() ? it->nick.c_str() : ServerInstance->Config->ServerName), it->time.c_str()); } } user->WriteNumeric(endoflistnumeric, "%s %s :%s", user->nick.c_str(), channel->name.c_str(), endofliststring.c_str()); |