summaryrefslogtreecommitdiff
path: root/chat/ircu/patches/patch-ai
blob: 158a2ed4a36adf95e25da5349d0a10985015ad51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ai,v 1.3 2008/03/24 18:40:19 adrianp Exp $

--- ircd/s_user.c.orig	2007-08-21 02:13:15.000000000 +0100
+++ ircd/s_user.c
@@ -1078,7 +1078,7 @@ int set_user_mode(struct Client *cptr, s
 	  do_host_hiding = 1;
 	break;
       case 'r':
-	if (what == MODE_ADD) {
+	if (*(p + 1) && (what == MODE_ADD)) {
 	  account = *(++p);
 	  SetAccount(sptr);
 	}