diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-26 19:59:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-26 19:59:39 +0000 |
commit | 7db1805f6fc5d51ce6ec01129eede3bb09f2eaa1 (patch) | |
tree | 5da5ab339eaeaacebf687e79a4e0b22496d235aa | |
parent | c3b2accb6b0d5a13789ca8d7a6ae710432d21f14 (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
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | src/modules/m_svshold.cpp | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -294,6 +294,8 @@ sub clean sub update { + chomp($topdir = getcwd()); + $this = resolve_directory($topdir); # PWD, Regardless. getmodules(); # Does the cache file exist? if (!getcache()) { @@ -314,6 +316,8 @@ sub update sub modupdate { + chomp($topdir = getcwd()); + $this = resolve_directory($topdir); # PWD, Regardless. getmodules(); # Does the cache file exist? if (!getcache()) { 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()); |