summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_pgsql.cpp2
-rw-r--r--src/modules/u_listmode.h6
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;
}
}