Просмотр исходного кода

* cmd_su allowed su'ing to a perm owner

svn: 1417
Bryan Drewery 21 лет назад
Родитель
Сommit
ffc0894428
2 измененных файлов с 3 добавлено и 0 удалено
  1. 1 0
      doc/UPDATES
  2. 2 0
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -54,6 +54,7 @@ This is a summary of ChangeLog basically.
 * Conf/uname email now includes binary path.
 * After changing conf with -C, binary is now moved to binpath/binname.
 * 'strict-host' is now '1'; ident is now parsed CORRECTLY, *!ident@host will no longer match *!~ident@host.
+* cmd_su allowed su'ing to a permanent owner.
 
 1.1.9
 

+ 2 - 0
src/cmds.c

@@ -3048,6 +3048,8 @@ static void cmd_su(int idx, char *par)
     dprintf(idx, "You can't su to a bot... then again, why would you wanna?\n");
   else if (dcc[idx].u.chat->su_nick)
     dprintf(idx, "You cannot currently double .su; try .su'ing directly.\n");
+  else if (isowner(u->handle) && egg_strcasecmp(dcc[idx].nick, u->handle))
+    dprintf(idx, "You can't su to a permanent bot owner.\n");
   else {
     get_user_flagrec(u, &fr, NULL);
     ok = 1;