From e9b7b237c0370cd5f10f69c1c4878d464865b30b Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 25 May 2005 20:45:49 +0000 Subject: Operhosts are now optional (in the type tag) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1520 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/commands.cpp') 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; -- cgit v1.3.1-10-gc9f91