From bd9be879cbd0ae0010e9699094e79fc38df37ec1 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 13 Dec 2006 19:22:09 +0000 Subject: Make this behave more like other WATCH implementations git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5973 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_watch.cpp | 5 +++-- 1 file 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(); } -- cgit v1.2.3