Changeset 549

Show
Ignore:
Timestamp:
05/04/06 12:07:49 (3 years ago)
Author:
oxff
Message:

nepenthes-experimental.log-irc: made adjustements to conform to coding style policies -.-

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/branches/nepenthes-experimental/modules/log-irc/IrcDialogue.cpp

    r548 r549  
    149149        uint32_t bufferLength = m_Buffer->getSize(); 
    150150        uint32_t lineLength, processedLength; 
    151         const char * look, * lineStart; 
     151        const char *look, *lineStart; 
    152152         
    153153        if(bufferLength < 2) 
     
    182182//! oxff: again slightly faster and definitely better readable 
    183183//! oxff: now splits into IRC RFC elements, not words (leaving PRIVMSG lines) 
    184 void  IrcDialogue::processLine(const char * line, uint32_t lineLength) 
     184void  IrcDialogue::processLine(const char *line, uint32_t lineLength) 
    185185{ 
    186186        vector<string> lineElements; 
    187187         
    188188        { 
    189                 const char * look = line; 
     189                const char *look = line; 
    190190                string element; 
    191191                 
     
    248248} 
    249249 
    250 void IrcDialogue::processMessage(const char * origin, const char * target, const char * message) 
     250void IrcDialogue::processMessage(const char *origin, const char *target, const char *message) 
    251251{ 
    252252        string responseMessage = string("PRIVMSG "); 
     
    277277        else if(!strcmp(message, "!help") && m_NickName == target) 
    278278        { 
    279                 static const char * helpLines[] = 
     279                static const char *helpLines[] = 
    280280                { 
    281281                        " :nepenthes v" VERSION " log-irc control interface\r\n", 
  • nepenthes/branches/nepenthes-experimental/modules/log-irc/IrcDialogue.hpp

    r547 r549  
    7474                ConsumeLevel connectionShutdown(Message * msg); 
    7575 
    76                 void logIrc(uint32_t mask, const char * message); 
     76                void logIrc(uint32_t mask, const char *message); 
    7777 
    7878                void sendNick(bool random); 
     
    8282        protected: 
    8383                void processBuffer(); 
    84                 void processLine(const char * line, uint32_t lineLength); 
     84                void processLine(const char *line, uint32_t lineLength); 
    8585                 
    8686                void loggedOn(); 
    87                 void processMessage(const char * origin, const char * target, const char * message); 
     87                void processMessage(const char *origin, const char *target, const char *message); 
    8888                 
    8989                bool m_Pinged, m_LoggedOn; 
  • nepenthes/branches/nepenthes-experimental/modules/log-irc/log-irc.cpp

    r548 r549  
    383383} 
    384384 
    385 void LogIrc::setLogPattern(const char * patternString) 
     385void LogIrc::setLogPattern(const char *patternString) 
    386386{        
    387387        // this code just plain sucks, does not detect wrong pattern names... 
  • nepenthes/branches/nepenthes-experimental/modules/log-irc/log-irc.hpp

    r548 r549  
    9595                 
    9696                bool logMaskMatches(uint32_t mask); 
    97                 void setLogPattern(const char * patternString); 
     97                void setLogPattern(const char *patternString); 
    9898 
    9999                bool useTor();