From 8eb561a6c0ec23aa31e46aee768e1dacee9ebe90 Mon Sep 17 00:00:00 2001 From: Zido Date: Tue, 18 Apr 2006 21:13:13 +0000 Subject: - Added @who to IRC Bot, Refer to changelog. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6169 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/irc.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/irc.c b/src/map/irc.c index 6fef716fb..fa464a33a 100644 --- a/src/map/irc.c +++ b/src/map/irc.c @@ -214,6 +214,9 @@ void irc_parse_sub(int fd, char *incoming_string) char cmdargs[256]; int users=0; + int i=0; + + struct map_session_data **allsd; memset(source,'\0',256); memset(command,'\0',256); @@ -274,15 +277,29 @@ void irc_parse_sub(int fd, char *incoming_string) if(get_access(source_nick)0) { + sprintf(send_string,"NOTICE %s :%d Users Online",source_nick,users); + irc_send(send_string); + for(i=0;istatus.name); + irc_send(send_string); + } + } else { + sprintf(send_string,"NOTICE %s :No Users Online",source_nick); + irc_send(send_string); + } } } -- cgit v1.2.3-70-g09d2