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

* Fixed tell_who() showing long string of numbers for socket -1

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

+ 1 - 1
src/cmds.c

@@ -84,7 +84,7 @@ static void tell_who(int idx, int chan)
     if (dcc[i].type && dcc[i].type == &DCC_CHAT)
       if (dcc[i].u.chat->channel == chan) {
 	if (atr & USER_OWNER) {
-	  egg_snprintf(format, sizeof format, "  [%%.2lu]  %%c%%-%us %%s", nicklen);
+	  egg_snprintf(format, sizeof format, "  [%%.2li]  %%c%%-%us %%s", nicklen);
 	  sprintf(s, format,
 		  dcc[i].sock, (geticon(i) == '-' ? ' ' : geticon(i)),
 		  dcc[i].nick, dcc[i].host);