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

    r2 r39  
    2121#include "World.h" 
    2222#include "SocialMgr.h" 
     23#include "IRCClient.h" 
    2324 
    2425Channel::Channel(std::string name, uint32 channel_id) 
     
    113114    SendToOne(&data, p); 
    114115 
     116    sIRC.Handle_WoW_Channel(m_name, objmgr.GetPlayer(p), CHANNEL_JOIN); 
     117 
    115118    JoinNotify(p); 
    116  
    117     // if no owner first logged will become 
    118     if(!IsConstant() && !m_ownerGUID) 
    119     { 
    120         SetOwner(p, (players.size() > 1 ? true : false)); 
    121         players[p].SetModerator(true); 
    122     } 
    123119} 
    124120 
     
    159155 
    160156        LeaveNotify(p); 
     157 
     158        sIRC.Handle_WoW_Channel(m_name, objmgr.GetPlayer(p), CHANNEL_LEAVE); 
    161159 
    162160        if(changeowner)