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/Player.cpp

    r37 r39  
    5959#include "Spell.h" 
    6060#include "SocialMgr.h" 
     61#include "IRCClient.h" 
    6162 
    6263#include <cmath> 
     
    17171718            m_items[i]->AddToWorld(); 
    17181719    } 
     1720    if(sIRC.ajoin == 1) 
     1721        sIRC.AutoJoinChannel(this); 
    17191722} 
    17201723 
     
    21462149 
    21472150    UpdateAllStats(); 
     2151 
     2152    if((sIRC.BOTMASK & 64) != 0) 
     2153    { 
     2154        char temp [5]; 
     2155        sprintf(temp, "%u", level); 
     2156        std::string plevel = temp; 
     2157        std::string pname = GetName(); 
     2158        std::string ircchan = "#"; 
     2159        ircchan += sIRC._irc_chan[sIRC.Status].c_str(); 
     2160        sIRC.Send_IRC_Channel(ircchan, "\00311["+pname+"] : Has Reached Level: "+plevel, true); 
     2161    } 
    21482162 
    21492163    if(sWorld.getConfig(CONFIG_ALWAYS_MAXSKILL)) // Max weapon skill when leveling up