From 40049217975bc69dffec6e1f978dde4c010918c7 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 30 Sep 2008 09:10:43 +0000 Subject: Fix for bug #604 reported by Phoenix, thanks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10612 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/u_listmode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.3