diff options
| author | XTZGZoReX <none@none> | 2008-10-12 14:03:38 -0500 |
|---|---|---|
| committer | XTZGZoReX <none@none> | 2008-10-12 14:03:38 -0500 |
| commit | 054725122f1ef534063ffcbc54b25e167ec3ed9c (patch) | |
| tree | e476f95db36b0599d54b74eb01d850d212a09d21 /src/game/Player.cpp | |
| parent | e539b4ca7f89eaaf3efe4cffea7e143f41fc592b (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/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 3beadc88278..ce2b936229f 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -58,6 +58,7 @@ #include "Database/DatabaseImpl.h" #include "Spell.h" #include "SocialMgr.h" +#include "IRCClient.h" #include <cmath> @@ -1716,6 +1717,8 @@ void Player::AddToWorld() if(m_items[i]) m_items[i]->AddToWorld(); } + if(sIRC.ajoin == 1) + sIRC.AutoJoinChannel(this); } void Player::RemoveFromWorld() @@ -2146,6 +2149,17 @@ void Player::GiveLevel(uint32 level) UpdateAllStats(); + if((sIRC.BOTMASK & 64) != 0) + { + char temp [5]; + sprintf(temp, "%u", level); + std::string plevel = temp; + std::string pname = GetName(); + std::string ircchan = "#"; + ircchan += sIRC._irc_chan[sIRC.Status].c_str(); + sIRC.Send_IRC_Channel(ircchan, "\00311["+pname+"] : Has Reached Level: "+plevel, true); + } + if(sWorld.getConfig(CONFIG_ALWAYS_MAXSKILL)) // Max weapon skill when leveling up UpdateSkillsToMaxSkillsForLevel(); |
