|
From: <br...@us...> - 2008-01-04 17:42:34
|
Revision: 368
http://libirc.svn.sourceforge.net/libirc/?rev=368&view=rev
Author: brlcad
Date: 2008-01-04 09:41:55 -0800 (Fri, 04 Jan 2008)
Log Message:
-----------
accept a patch from Barna Farag?\195?\179 that fixes the PONG reply to server PING requests
Modified Paths:
--------------
trunk/libirc/AUTHORS
trunk/libirc/NEWS
trunk/libirc/src/ircBasicCommands.cpp
Modified: trunk/libirc/AUTHORS
===================================================================
--- trunk/libirc/AUTHORS 2007-12-03 16:41:05 UTC (rev 367)
+++ trunk/libirc/AUTHORS 2008-01-04 17:41:55 UTC (rev 368)
@@ -1,3 +1,4 @@
+ -*- coding: utf-8 -*-
libIRC Contributors
===================
@@ -12,3 +13,5 @@
VC6 build files
Dejan Lekic
previous 'libIRC' codebase
+Barna Faragó
+ PONG command fix
Modified: trunk/libirc/NEWS
===================================================================
--- trunk/libirc/NEWS 2007-12-03 16:41:05 UTC (rev 367)
+++ trunk/libirc/NEWS 2008-01-04 17:41:55 UTC (rev 368)
@@ -1,3 +1,4 @@
+ -*- coding: utf-8 -*-
libIRC Release Notes
====================
@@ -11,6 +12,7 @@
--- 2007-09-XX Release 0.2.0 ---
----------------------------------------------------------------------
+* fixed PONG reply - Barna Faragó
* fixed crash on channel departure - MasterMind (mm_202), Jeff Myers
* enhancements for plugins - Jeff Myers
Modified: trunk/libirc/src/ircBasicCommands.cpp
===================================================================
--- trunk/libirc/src/ircBasicCommands.cpp 2007-12-03 16:41:05 UTC (rev 367)
+++ trunk/libirc/src/ircBasicCommands.cpp 2008-01-04 17:41:55 UTC (rev 368)
@@ -79,6 +79,7 @@
{
IRCCommandInfo ircInfo;
ircInfo.command = eCMD_PONG;
+ ircInfo.raw = info.raw;
client.sendIRCCommand(eCMD_PONG,ircInfo);
return true;
}
@@ -109,7 +110,8 @@
{
IRCCommandInfo &ircInfo = (IRCCommandInfo&)info;
- std::string commandLine;
+ std::string commandLine = info.raw.substr(5, info.raw.length()-5);
+
// PING
client.sendIRCCommandToServer(eCMD_PONG,commandLine);
return true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|