summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-13 19:22:09 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-13 19:22:09 +0000
commitbd9be879cbd0ae0010e9699094e79fc38df37ec1 (patch)
tree8000ff266b87832380c6f0fdb509e1f071feb5ab
parent7b703512caffaf16015de787f83bc10c455b2326 (diff)
Make this behave more like other WATCH implementations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5973 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_watch.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp
index 58ceaf645..70257af11 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -215,6 +215,8 @@ class cmd_watch : public command_t
{
if (!q->second.empty())
user->WriteServ("604 %s %s %s :is online", user->nick, q->first.c_str(), q->second.c_str());
+ else
+ user->WriteServ("605 %s %s * * 0 :is offline", user->nick, q->first.c_str());
}
}
user->WriteServ("607 %s :End of WATCH list",user->nick);
@@ -229,8 +231,7 @@ class cmd_watch : public command_t
if (user->GetExt("watchlist", wl))
{
for (watchlist::iterator q = wl->begin(); q != wl->end(); q++)
- if (!q->second.empty())
- list.append(q->first.c_str()).append(" ");
+ list.append(q->first.c_str()).append(" ");
you_have = wl->size();
}