summaryrefslogtreecommitdiff
path: root/src/map/irc.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-06 14:19:26 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-06 14:19:26 +0000
commit3adaf8788b65a84ec4266c6621d30679a95f546d (patch)
treeda233eb45db1f482a4f2a86be9529c90edd76c8b /src/map/irc.c
parentad95c2ba955e42d74afffbb6b9b333f69a3f1b1e (diff)
downloadhercules-3adaf8788b65a84ec4266c6621d30679a95f546d.tar.gz
hercules-3adaf8788b65a84ec4266c6621d30679a95f546d.tar.bz2
hercules-3adaf8788b65a84ec4266c6621d30679a95f546d.tar.xz
hercules-3adaf8788b65a84ec4266c6621d30679a95f546d.zip
Modified showmsg code to not attach a timestamp to MSG_NONE-type messages, generated by ShowMessage(). It now works exactly like printf().
Removed/replaced all printf calls in the code. Added a new flag to setting 'console_silent', for filtering debug messages. Silenced the "Broken pipe found" and "Server running in debug mode" messages. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12020 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/irc.c')
-rw-r--r--src/map/irc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/irc.c b/src/map/irc.c
index 0238225fe..9b1a48c5f 100644
--- a/src/map/irc.c
+++ b/src/map/irc.c
@@ -55,10 +55,10 @@ int irc_connect_timer(int tid, unsigned int tick, int id, int data)
ShowInfo("(IRC) Connecting to %s... ", irc_ip_str);
irc_fd = make_connection(irc_ip,irc_port);
if(irc_fd > 0){
- printf("ok\n");
+ ShowMessage("ok\n");
session[irc_fd]->func_parse = irc_parse;
} else
- printf("failed\n");
+ ShowMessage("failed\n");
return 0;
}
@@ -298,10 +298,10 @@ void irc_parse_sub(int fd, char *incoming_string)
{
ShowInfo("IRC: Refreshing User List");
irc_rmnames();
- printf("...");
+ ShowMessage("...");
sprintf(send_string,"NAMES %s",irc_channel);
irc_send(send_string);
- printf("Done\n");
+ ShowMessage("Done\n");
}
else // Autojoin on kick
if((strcmpi(command,"kick")==0)&&(irc_autojoin==1))