diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-28 21:43:53 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-28 21:43:53 +0000 |
commit | 0605ba6ecbaa34b185674047e976773de8bf116a (patch) | |
tree | 099f75438e92a7eecfd4c07f25b30f887963122c /src | |
parent | c0dc02e0cbbcbcc5579c657ad126d717aad90b6f (diff) |
A few tweaks here and there
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2954 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_sqloper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp index 79a5aa74d..9a3800685 100644 --- a/src/modules/extra/m_sqloper.cpp +++ b/src/modules/extra/m_sqloper.cpp @@ -154,14 +154,16 @@ class ModuleSQLOper : public Module for (int j =0; j < Conf->Enumerate("type"); j++) { std::string TypeName = Conf->ReadValue("type","name",j); + Srv->Log(DEBUG,"Scanning opertype: "+TypeName); std::string pattern = std::string(user->ident) + "@" + std::string(user->host); if ((TypeName == rowresult->GetField("type")) && (Srv->MatchText(pattern,rowresult->GetField("hostname")))); { + Srv->Log(DEBUG,"Host and type match: "+TypeName+" "+rowresult->GetField("type")); /* found this oper's opertype */ std::string HostName = Conf->ReadValue("type","host",j); if (HostName != "") Srv->ChangeHost(user,HostName); - strlcpy(user->oper,TypeName.c_str(),NICKMAX); + strlcpy(user->oper,rowresult->GetField("type").c_str(),NICKMAX); WriteOpers("*** %s (%s@%s) is now an IRC operator of type %s",user->nick,user->ident,user->host,rowresult->GetField("type").c_str()); WriteServ(user->fd,"381 %s :You are now an IRC operator of type %s",user->nick,rowresult->GetField("type").c_str()); if (!strchr(user->modes,'o')) |