summaryrefslogtreecommitdiff
path: root/src/modules/m_hostchange.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-09 12:32:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-09 12:32:34 +0000
commit52acbb466b84a1cd161b1c111f855d6f0419fff3 (patch)
tree75c047fe70b522a23699f9b2d74c868822850f3f /src/modules/m_hostchange.cpp
parent0161215f42ccbfe45d1aef626f830d39486ef699 (diff)
A ton more clear() and empty() stuff thats been lingering on the long term todo for too long a term :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7264 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_hostchange.cpp')
-rw-r--r--src/modules/m_hostchange.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp
index 803ca8d92..cf5c5f96d 100644
--- a/src/modules/m_hostchange.cpp
+++ b/src/modules/m_hostchange.cpp
@@ -101,7 +101,7 @@ class ModuleHostChange : public Module
{
Host* h = (Host*)i->second;
// host of new user matches a hostchange tag's mask
- std::string newhost = "";
+ std::string newhost;
if (h->action == "set")
{
newhost = h->newhost;
@@ -113,7 +113,7 @@ class ModuleHostChange : public Module
else if (h->action == "addnick")
{
// first take their nick and strip out non-dns, leaving just [A-Z0-9\-]
- std::string complete = "";
+ std::string complete;
std::string old = user->nick;
for (unsigned int j = 0; j < old.length(); j++)
{