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

* Show HOSTS remotely

svn: 952
Bryan Drewery 22 лет назад
Родитель
Сommit
321798647c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/userent.c

+ 1 - 1
src/userent.c

@@ -802,7 +802,7 @@ static void hosts_display(int idx, struct user_entry *e, struct userrec *u)
 #ifdef LEAF
 #ifdef LEAF
   /* if this is a su, dont show hosts
   /* if this is a su, dont show hosts
    * otherwise, let users see their own hosts */
    * otherwise, let users see their own hosts */
-  if (!strcmp(u->handle,dcc[idx].nick) && !dcc[idx].u.chat->su_nick) { 
+  if (dcc[idx].simul || (!strcmp(u->handle,dcc[idx].nick) && !dcc[idx].u.chat->su_nick)) { 
 #endif /* LEAF */
 #endif /* LEAF */
     char s[1024] = "";
     char s[1024] = "";
     struct list_type *q = NULL;
     struct list_type *q = NULL;