Author: Entrope <mdpoole@troilus.org>
[ircu2.10.12-pk.git] / ircd / s_user.c
index a2de84f876ed7082fac055601f11ea5edc073f89..1fdfcbf323751eaaee06cd4f28479c12ab7971cb 100644 (file)
@@ -1078,7 +1078,7 @@ int set_user_mode(struct Client *cptr, struct Client *sptr, int parc,
          do_host_hiding = 1;
        break;
       case 'r':
-       if (what == MODE_ADD) {
+       if (*(p + 1) && (what == MODE_ADD)) {
          account = *(++p);
          SetAccount(sptr);
        }