Ver Fonte

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

svn: 1561
Bryan Drewery há 21 anos atrás
pai
commit
3f8e12972d
1 ficheiros alterados com 1 adições e 1 exclusões
  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].type && dcc[i].type == &DCC_CHAT)
       if (dcc[i].u.chat->channel == chan) {
       if (dcc[i].u.chat->channel == chan) {
 	if (atr & USER_OWNER) {
 	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,
 	  sprintf(s, format,
 		  dcc[i].sock, (geticon(i) == '-' ? ' ' : geticon(i)),
 		  dcc[i].sock, (geticon(i) == '-' ? ' ' : geticon(i)),
 		  dcc[i].nick, dcc[i].host);
 		  dcc[i].nick, dcc[i].host);