Show
Ignore:
Timestamp:
11/19/08 13:26:44 (17 years ago)
Author:
yumileroy
Message:

[svn] * Various small changes here and there.
* Implementing MangChat? IRC system.
* Added new config option, MAX_WHO, can be used to set the limit of characters being sent in a /who request from client.

Original author: XTZGZoReX
Date: 2008-10-12 14:03:38-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/trinitycore/CliRunnable.cpp

    r2 r39  
    3737#include "PlayerDump.h" 
    3838#include "Player.h" 
     39#include "IRCClient.h" 
    3940 
    4041//CliCommand and CliCommandHolder are defined in World.h to avoid cyclic deps 
     
    314315    sWorld.SendWorldText(LANG_SYSTEMMESSAGE,textUtf8.c_str()); 
    315316    zprintf("Broadcasting to the world: %s\r\n",textUtf8.c_str()); 
     317 
     318    if((sIRC.BOTMASK & 256) != 0) 
     319    { 
     320        std::string ircchan = "#"; 
     321        ircchan += sIRC._irc_chan[sIRC.anchn].c_str(); 
     322        sIRC.Send_IRC_Channel(ircchan, sIRC.MakeMsg("\00304,08\037/!\\\037\017\00304 System Message \00304,08\037/!\\\037\017 %s", "%s", text), true); 
     323    } 
     324 
    316325} 
    317326