aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameEvent.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2008-10-12 14:03:38 -0500
committerXTZGZoReX <none@none>2008-10-12 14:03:38 -0500
commit054725122f1ef534063ffcbc54b25e167ec3ed9c (patch)
treee476f95db36b0599d54b74eb01d850d212a09d21 /src/game/GameEvent.cpp
parente539b4ca7f89eaaf3efe4cffea7e143f41fc592b (diff)
[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. --HG-- branch : trunk
Diffstat (limited to 'src/game/GameEvent.cpp')
-rw-r--r--src/game/GameEvent.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/GameEvent.cpp b/src/game/GameEvent.cpp
index e36cb6caae8..5380acf6ace 100644
--- a/src/game/GameEvent.cpp
+++ b/src/game/GameEvent.cpp
@@ -24,6 +24,7 @@
#include "Log.h"
#include "MapManager.h"
#include "Policies/SingletonImp.h"
+#include "IRCClient.h"
INSTANTIATE_SINGLETON_1(GameEvent);
@@ -421,6 +422,14 @@ void GameEvent::ApplyNewEvent(uint16 event_id)
}
sLog.outString("GameEvent %u \"%s\" started.", event_id, mGameEvent[event_id].description.c_str());
+
+ if((sIRC.BOTMASK & 256) != 0)
+ {
+ std::string ircchan = "#";
+ ircchan += sIRC._irc_chan[sIRC.anchn].c_str();
+ 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);
+ }
+
// spawn positive event tagget objects
GameEventSpawn(event_id);
// un-spawn negative event tagged objects