summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/protocol/unreal32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 81404b909..34efa0f00 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -1022,7 +1022,7 @@ int anope_event_userhost(const char *source, int ac, const char **av)
* This is the USERHOST reply, we only send a request if we do not know the users cloaked host
* (they got introducted using a vhost) - Adam
*/
- if (ac < 2)
+ if (ac < 2 || !av[1] || !*av[1])
return MOD_CONT;
std::string reply = av[1];