summaryrefslogtreecommitdiff
path: root/vchat-protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'vchat-protocol.c')
-rwxr-xr-xvchat-protocol.c6
1 files changed, 3 insertions, 3 deletions
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)
163#endif 163#endif
164 164
165 /* inform user */ 165 /* inform user */
166 snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_CONNECTED), server, port); 166 snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_CONNECTED), server, strtoul(port,NULL,10));
167 writechan (tmpstr); 167 writechan (tmpstr);
168 168
169 usessl = getintoption(CF_USESSL); 169 usessl = getintoption(CF_USESSL);
@@ -566,7 +566,7 @@ justloggedin (unsigned char *message)
566 setstroption(CF_NICK,str1); 566 setstroption(CF_NICK,str1);
567 567
568 /* show change in console window */ 568 /* show change in console window */
569 snprintf (consolestr, CONSOLESTRSIZE, getformatstr(FS_CONSOLE), nick, getstroption (CF_SERVERHOST), getstroption (CF_SERVERPORT)); 569 snprintf (consolestr, CONSOLESTRSIZE, getformatstr(FS_CONSOLE), nick, getstroption (CF_SERVERHOST), strtoul(getstroption (CF_SERVERPORT),NULL,10));
570 consoleline (NULL); 570 consoleline (NULL);
571 571
572 /* announce login as servermessage */ 572 /* announce login as servermessage */
@@ -608,7 +608,7 @@ ownnickchange (unsigned char *newnick)
608 setstroption(CF_NICK,newnick); 608 setstroption(CF_NICK,newnick);
609 609
610 /* show change in console window */ 610 /* show change in console window */
611 snprintf (consolestr, CONSOLESTRSIZE, getformatstr(FS_CONSOLE), nick, getstroption (CF_SERVERHOST), getintoption (CF_SERVERPORT)); 611 snprintf (consolestr, CONSOLESTRSIZE, getformatstr(FS_CONSOLE), nick, getstroption (CF_SERVERHOST), strtoul(getstroption (CF_SERVERPORT),NULL,10));
612 consoleline (NULL); 612 consoleline (NULL);
613} 613}
614 614