summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-29 18:42:11 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-29 18:42:11 +0000
commit3689475e77478e702623b970108c6c9d4a117bcb (patch)
tree3a0a2c6d62277a1ba36c0e0cf010ca236f411667 /src/map
parent928b5aba634a04f25299dcbd1e355fbc39e28b60 (diff)
downloadhercules-3689475e77478e702623b970108c6c9d4a117bcb.tar.gz
hercules-3689475e77478e702623b970108c6c9d4a117bcb.tar.bz2
hercules-3689475e77478e702623b970108c6c9d4a117bcb.tar.xz
hercules-3689475e77478e702623b970108c6c9d4a117bcb.zip
- Added printing out whenever the irc-module attempts to connect, to debug whether the map-server lag is due to this or not.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8537 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/irc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/irc.c b/src/map/irc.c
index 908e8220a..46d1c3b95 100644
--- a/src/map/irc.c
+++ b/src/map/irc.c
@@ -48,10 +48,15 @@ int irc_connect_timer(int tid, unsigned int tick, int id, int data)
{
if(irc_si && session[irc_si->fd])
return 0;
+ //Ok, this ShowInfo and printf are a little ugly, but they are meant to
+ //debug just how long the code freezes here. [Skotlex]
+ ShowInfo("(IRC) Connecting to %s... ", irc_ip_str);
irc_fd = make_connection(irc_ip,irc_port);
if(irc_fd > 0){
+ printf("ok\n");
session[irc_fd]->func_parse = irc_parse;
- }
+ } else
+ printf("failed\n");
return 0;
}