summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-13 16:18:52 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-13 16:18:52 +0000
commit25a78272bc44ae466ebb2e60e090e07dc1fe4f88 (patch)
tree2bcf78f832776d17ad1d6d942e16ae5504418f84
parent82bf46fa061a4f18071e73756e4e0d618eb57320 (diff)
Fix the format of +p channels in /list (both in core /list and in m_safelist), thanks jrm :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9723 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/commands/cmd_list.cpp2
-rw-r--r--src/modules/m_safelist.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/cmd_list.cpp b/src/commands/cmd_list.cpp
index a8c696645..f662f7997 100644
--- a/src/commands/cmd_list.cpp
+++ b/src/commands/cmd_list.cpp
@@ -62,7 +62,7 @@ CmdResult CommandList::Handle (const std::vector<std::string>& parameters, User
bool n = (i->second->HasUser(user) || IS_OPER(user));
if (!IS_OPER(user) && (i->second->IsModeSet('p')) && (!n))
{
- user->WriteNumeric(322, "%s *",user->nick);
+ user->WriteNumeric(322, "%s * %ld :",user->nick, users);
}
else
{
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp
index 358d54eda..2e0212ded 100644
--- a/src/modules/m_safelist.cpp
+++ b/src/modules/m_safelist.cpp
@@ -188,7 +188,7 @@ class ModuleSafeList : public Module
bool display = (match(chan->name, ld->glob.c_str()) || (*chan->topic && match(chan->topic, ld->glob.c_str())));
if ((users) && (display))
{
- int counter = snprintf(buffer, MAXBUF, "322 %s *", user->nick);
+ int counter = snprintf(buffer, MAXBUF, "322 %s * %ld :", user->nick, users);
amount_sent += counter + ServerNameSize;
user->WriteServ(std::string(buffer));
}