From 9707986d30b33e5b652c8d26931c94908632e565 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 13 Dec 2003 12:14:10 +0000 Subject: Last change to external port representation revoked. --- vchat-protocol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vchat-protocol.c') diff --git a/vchat-protocol.c b/vchat-protocol.c index 03161e0..0dfcf25 100755 --- a/vchat-protocol.c +++ b/vchat-protocol.c @@ -163,7 +163,7 @@ vcconnect (unsigned char *server, unsigned char *port) #endif /* inform user */ - snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_CONNECTED), server, port); + snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_CONNECTED), server, strtoul(port,NULL,10)); writechan (tmpstr); usessl = getintoption(CF_USESSL); @@ -566,7 +566,7 @@ justloggedin (unsigned char *message) setstroption(CF_NICK,str1); /* show change in console window */ - snprintf (consolestr, CONSOLESTRSIZE, getformatstr(FS_CONSOLE), nick, getstroption (CF_SERVERHOST), getstroption (CF_SERVERPORT)); + snprintf (consolestr, CONSOLESTRSIZE, getformatstr(FS_CONSOLE), nick, getstroption (CF_SERVERHOST), strtoul(getstroption (CF_SERVERPORT),NULL,10)); consoleline (NULL); /* announce login as servermessage */ @@ -608,7 +608,7 @@ ownnickchange (unsigned char *newnick) setstroption(CF_NICK,newnick); /* show change in console window */ - snprintf (consolestr, CONSOLESTRSIZE, getformatstr(FS_CONSOLE), nick, getstroption (CF_SERVERHOST), getintoption (CF_SERVERPORT)); + snprintf (consolestr, CONSOLESTRSIZE, getformatstr(FS_CONSOLE), nick, getstroption (CF_SERVERHOST), strtoul(getstroption (CF_SERVERPORT),NULL,10)); consoleline (NULL); } -- cgit v1.2.3