diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-17 02:36:29 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-19 18:32:41 +0100 |
commit | ba5c0db795824c3fc1ad48ce332d7bdc440cb77f (patch) | |
tree | 0ef76daaf8ad4cc68a2cca9c1c2446ae045278e2 /src/modules/m_watch.cpp | |
parent | 2de13e15c26edf4f4a5c0280974b2dea052c1853 (diff) |
Change empty string assignments to .clear() or remove them entirely
Diffstat (limited to 'src/modules/m_watch.cpp')
-rw-r--r-- | src/modules/m_watch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 3750fceac..4012f358c 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -249,7 +249,7 @@ class CommandWatch : public Command } else { - (*wl)[nick] = ""; + (*wl)[nick].clear(); user->WriteNumeric(605, "%s %s * * 0 :is offline",user->nick.c_str(), nick); } } @@ -435,7 +435,7 @@ class Modulewatch : public Module watchlist* wl = cmdw.ext.get(*n); if (wl) /* We were on somebody's notify list, set ourselves offline */ - (*wl)[user->nick.c_str()] = ""; + (*wl)[user->nick.c_str()].clear(); } } @@ -504,7 +504,7 @@ class Modulewatch : public Module if (wl) { (*n)->WriteNumeric(601, "%s %s %s %s %lu :went offline", (*n)->nick.c_str(), oldnick.c_str(), user->ident.c_str(), user->dhost.c_str(), (unsigned long) user->age); - (*wl)[oldnick.c_str()] = ""; + (*wl)[oldnick.c_str()].clear(); } } } |