From 7db1805f6fc5d51ce6ec01129eede3bb09f2eaa1 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 26 Sep 2006 19:59:39 +0000 Subject: 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 --- src/modules/m_svshold.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules') 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 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()); -- cgit v1.2.3