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/game/GameEvent.cpp

    r2 r39  
    2525#include "MapManager.h" 
    2626#include "Policies/SingletonImp.h" 
     27#include "IRCClient.h" 
    2728 
    2829INSTANTIATE_SINGLETON_1(GameEvent); 
     
    422423 
    423424    sLog.outString("GameEvent %u \"%s\" started.", event_id, mGameEvent[event_id].description.c_str()); 
     425 
     426    if((sIRC.BOTMASK & 256) != 0) 
     427    { 
     428        std::string ircchan = "#"; 
     429        ircchan += sIRC._irc_chan[sIRC.anchn].c_str(); 
     430        sIRC.Send_IRC_Channel(ircchan, sIRC.MakeMsg("\00304,08\037/!\\\037\017\00304 Game Event \00304,08\037/!\\\037\017 %s", "%s", mGameEvent[event_id].description.c_str()), true); 
     431    } 
     432 
    424433    // spawn positive event tagget objects 
    425434    GameEventSpawn(event_id);