summaryrefslogtreecommitdiff
path: root/src/modules/m_svshold.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-26 19:59:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-26 19:59:39 +0000
commit7db1805f6fc5d51ce6ec01129eede3bb09f2eaa1 (patch)
tree5da5ab339eaeaacebf687e79a4e0b22496d235aa /src/modules/m_svshold.cpp
parentc3b2accb6b0d5a13789ca8d7a6ae710432d21f14 (diff)
Make svshold case insensitive, fix ./configure -update and ./configure -modupdate which were...still broke :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5341 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_svshold.cpp')
-rw-r--r--src/modules/m_svshold.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp
index 8096cb88b..cfe99c82e 100644
--- a/src/modules/m_svshold.cpp
+++ b/src/modules/m_svshold.cpp
@@ -44,6 +44,7 @@ public:
}
};
+
bool SVSHoldComp(const SVSHold &ban1, const SVSHold &ban2);
typedef std::vector<SVSHold> SVSHoldlist;
@@ -73,7 +74,7 @@ class cmd_svshold : public command_t
/* form: svshold nickname removes a hold. */
for (SVSHoldlist::iterator iter = SVSHolds.begin(); iter != SVSHolds.end(); iter++)
{
- if (parameters[0] == iter->nickname)
+ if (irc::string(parameters[0]) == irc::string(iter->nickname.c_str()))
{
unsigned long remaining = (iter->set_on + iter->length) - ServerInstance->Time();
user->WriteServ( "386 %s %s :Removed SVSHOLD with %lu seconds left before expiry (%s)", user->nick, iter->nickname.c_str(), remaining, iter->reason.c_str());
@@ -164,7 +165,7 @@ class ModuleSVSHold : public Module
/* check SVSHolds in here, and apply as necessary. */
for(SVSHoldlist::iterator iter = SVSHolds.begin(); iter != SVSHolds.end(); iter++)
{
- if (iter->nickname == newnick)
+ if (irc::string(iter->nickname.c_str()) == irc::string(newnick.c_str()))
{
// nope, boned.
user->WriteServ( "432 %s %s :Reserved nickname: %s", user->nick, newnick.c_str(), iter->reason.c_str());