Changeset 549
- Timestamp:
- 05/04/06 12:07:49 (3 years ago)
- Files:
-
- nepenthes/branches/nepenthes-experimental/modules/log-irc/IrcDialogue.cpp (modified) (4 diffs)
- nepenthes/branches/nepenthes-experimental/modules/log-irc/IrcDialogue.hpp (modified) (2 diffs)
- nepenthes/branches/nepenthes-experimental/modules/log-irc/log-irc.cpp (modified) (1 diff)
- nepenthes/branches/nepenthes-experimental/modules/log-irc/log-irc.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/branches/nepenthes-experimental/modules/log-irc/IrcDialogue.cpp
r548 r549 149 149 uint32_t bufferLength = m_Buffer->getSize(); 150 150 uint32_t lineLength, processedLength; 151 const char * look, *lineStart;151 const char *look, *lineStart; 152 152 153 153 if(bufferLength < 2) … … 182 182 //! oxff: again slightly faster and definitely better readable 183 183 //! oxff: now splits into IRC RFC elements, not words (leaving PRIVMSG lines) 184 void IrcDialogue::processLine(const char * line, uint32_t lineLength)184 void IrcDialogue::processLine(const char *line, uint32_t lineLength) 185 185 { 186 186 vector<string> lineElements; 187 187 188 188 { 189 const char * look = line;189 const char *look = line; 190 190 string element; 191 191 … … 248 248 } 249 249 250 void IrcDialogue::processMessage(const char * origin, const char * target, const char *message)250 void IrcDialogue::processMessage(const char *origin, const char *target, const char *message) 251 251 { 252 252 string responseMessage = string("PRIVMSG "); … … 277 277 else if(!strcmp(message, "!help") && m_NickName == target) 278 278 { 279 static const char * helpLines[] =279 static const char *helpLines[] = 280 280 { 281 281 " :nepenthes v" VERSION " log-irc control interface\r\n", nepenthes/branches/nepenthes-experimental/modules/log-irc/IrcDialogue.hpp
r547 r549 74 74 ConsumeLevel connectionShutdown(Message * msg); 75 75 76 void logIrc(uint32_t mask, const char * message);76 void logIrc(uint32_t mask, const char *message); 77 77 78 78 void sendNick(bool random); … … 82 82 protected: 83 83 void processBuffer(); 84 void processLine(const char * line, uint32_t lineLength);84 void processLine(const char *line, uint32_t lineLength); 85 85 86 86 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); 88 88 89 89 bool m_Pinged, m_LoggedOn; nepenthes/branches/nepenthes-experimental/modules/log-irc/log-irc.cpp
r548 r549 383 383 } 384 384 385 void LogIrc::setLogPattern(const char * patternString)385 void LogIrc::setLogPattern(const char *patternString) 386 386 { 387 387 // this code just plain sucks, does not detect wrong pattern names... nepenthes/branches/nepenthes-experimental/modules/log-irc/log-irc.hpp
r548 r549 95 95 96 96 bool logMaskMatches(uint32_t mask); 97 void setLogPattern(const char * patternString);97 void setLogPattern(const char *patternString); 98 98 99 99 bool useTor();
