Show
Ignore:
Timestamp:
11/19/08 13:48:57 (17 years ago)
Author:
yumileroy
Message:

[svn] *** Source: MaNGOS ***
* Fixed english spelling in src/game/WorldSocket.h/cpp. Author: Derex
* [240_world.sql] Create new command .senditems and remove from moderator level command .sendmail possibility send items. Author: Vladimir
* Added new command: .sendmoney player "subject" "message" money - Sends a mail with money to a player. Author: fredi
* Correctly apply taken damage debufs/bonuses in cases non-physical melee damage. Author: Frankir
* Fix a crash in add friend/ignore callback. (check if player still logged in). Author: Hunuza
* Better args checking in .sendmoney command. Author: Vladimir

Original author: visagalis
Date: 2008-11-14 17:50:48-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/WorldSocket.cpp

    r229 r232  
    463463        if (m_Header.space () > 0) 
    464464        { 
    465             //need to recieve the header 
     465            //need to receive the header 
    466466            const size_t to_header = (message_block.length () > m_Header.space () ? m_Header.space () : message_block.length ()); 
    467467            m_Header.copy (message_block.rd_ptr (), to_header); 
     
    470470            if (m_Header.space () > 0) 
    471471            { 
    472                 //couldn't recieve the whole header this time 
     472                // Couldn't receive the whole header this time 
    473473                ACE_ASSERT (message_block.length () == 0); 
    474474                errno = EWOULDBLOCK; 
     
    476476            } 
    477477 
    478           //we just recieved nice new header 
     478          // We just received nice new header 
    479479            if (handle_input_header () == -1) 
    480480            { 
     
    485485 
    486486        // Its possible on some error situations that this happens 
    487         // for example on closing when epoll recieves more chunked data and stuff 
     487        // for example on closing when epoll receives more chunked data and stuff 
    488488        // hope this is not hack ,as proper m_RecvWPct is asserted around 
    489489        if (!m_RecvWPct) 
    490490        { 
    491             sLog.outError ("Forsing close on input m_RecvWPct = NULL"); 
     491            sLog.outError ("Forcing close on input m_RecvWPct = NULL"); 
    492492            errno = EINVAL; 
    493493            return -1; 
    494494        } 
    495495 
    496         // We have full readed header, now check the data payload 
     496        // We have full read header, now check the data payload 
    497497        if (m_RecvPct.space () > 0) 
    498498        { 
     
    504504            if (m_RecvPct.space () > 0) 
    505505            { 
    506                 //couldn't recieve the whole data this time 
     506                //couldn't receive the whole data this time 
    507507                ACE_ASSERT (message_block.length () == 0); 
    508508                errno = EWOULDBLOCK; 
     
    511511        } 
    512512 
    513         //just recieved fresh new payload 
     513        //just received fresh new payload 
    514514        if (handle_input_payload () == -1) 
    515515        { 
     
    573573        return -1; 
    574574 
    575     // dump recieved packet 
     575    // Dump received packet 
    576576    if (sWorldLog.LogWorld ()) 
    577577    { 
     
    638638int WorldSocket::HandleAuthSession (WorldPacket& recvPacket) 
    639639{ 
    640     // NOTE: ATM the socket is singlethreaded, have this in mind ... 
     640    // NOTE: ATM the socket is singlethread, have this in mind ... 
    641641    uint8 digest[20]; 
    642642    uint32 clientSeed; 
     
    930930                { 
    931931                    sLog.outError  ("WorldSocket::HandlePing: Player kicked for " 
    932                                     "overspeeded pings adress = %s", 
     932                                    "over-speed pings address = %s", 
    933933                                    GetRemoteAddress ().c_str ()); 
    934934 
     
    951951            sLog.outError ("WorldSocket::HandlePing: peer sent CMSG_PING, " 
    952952                            "but is not authenticated or got recently kicked," 
    953                             " adress = %s", 
     953                            " address = %s", 
    954954                            GetRemoteAddress ().c_str ()); 
    955955             return -1;