summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_sqloper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp
index 51c26a749..70e971aae 100644
--- a/src/modules/extra/m_sqloper.cpp
+++ b/src/modules/extra/m_sqloper.cpp
@@ -148,7 +148,8 @@ class ModuleSQLOper : public Module
/* found this oper's opertype */
Srv->MeshSendAll("| "+std::string(user->nick)+" "+TypeName);
std::string HostName = Conf->ReadValue("type","host",j);
- Srv->ChangeHost(user,HostName);
+ if (HostName != "")
+ Srv->ChangeHost(user,HostName);
strlcpy(user->oper,TypeName.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());