summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 0570db66d..58597c2a0 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1737,7 +1737,8 @@ void handle_oper(char **parameters, int pcnt, userrec *user)
snprintf(global,MAXBUF,"| %s %s",user->nick,TypeName);
NetSendToAll(global);
ConfValue("type","host",j,HostName,&config_f);
- ChangeDisplayedHost(user,HostName);
+ if (*HostName)
+ ChangeDisplayedHost(user,HostName);
strlcpy(user->oper,TypeName,NICKMAX);
found = true;
fail2 = false;