diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-28 02:37:49 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-28 19:28:52 +0100 |
commit | 2d2e0469b8ac7c64c9dc22f7074db8fc245e2f13 (patch) | |
tree | 6645e1002a23da05d3f651b1a341b75445c65992 /src/modules | |
parent | 790f8c35841ef7c9ec123242611613b540f14c2c (diff) |
Change empty string assignments to .clear() or remove them entirely
Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_pgsql.cpp | 2 | ||||
-rw-r--r-- | src/modules/u_listmode.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 1e2ef56ea..71f494dd9 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -331,7 +331,7 @@ restart: } else { - qinprog.q = ""; + qinprog.q.clear(); } } else diff --git a/src/modules/u_listmode.h b/src/modules/u_listmode.h index c6e1f9add..dde36a482 100644 --- a/src/modules/u_listmode.h +++ b/src/modules/u_listmode.h @@ -303,7 +303,7 @@ class ListModeBase : public ModeHandler source->WriteNumeric(478, "%s %s %s :Channel ban/ignore list is full", source->nick.c_str(), channel->name.c_str(), parameter.c_str()); } - parameter = ""; + parameter.clear(); return MODEACTION_DENY; } else @@ -325,14 +325,14 @@ class ListModeBase : public ModeHandler } /* Tried to remove something that wasn't set */ TellNotSet(source, channel, parameter); - parameter = ""; + parameter.clear(); return MODEACTION_DENY; } else { /* Hmm, taking an exception off a non-existant list, DIE */ TellNotSet(source, channel, parameter); - parameter = ""; + parameter.clear(); return MODEACTION_DENY; } } |