X-Git-Url: https://git.hcoop.net/clinton/bobotpp.git/blobdiff_plain/86e67477dd22a328cd05ef24c7cbfbe2dc18747b..6b7614a8f1ae00cb470a620af4e0b6ffbbaa1951:/source/Parser.C diff --git a/source/Parser.C b/source/Parser.C index 75768e0..9ea7733 100644 --- a/source/Parser.C +++ b/source/Parser.C @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #ifdef HAVE_CONFIG_H #include "config.h" @@ -113,7 +113,7 @@ Parser::parse001 (ServerConnection * cnx, Person * from, String rest) String temp = ""; StringTokenizer st (rest); String realNick = st.next_token (); - if ((cnx->bot->nickName).toLower () != realNick) + if ((cnx->bot->nickName).toLower () != realNick.toLower ()) { // Yes, this can happen, and it was a very subtle bug cnx->bot->nickName = realNick; @@ -832,7 +832,9 @@ Parser::parseCTCP (ServerConnection * cnx, if (command == "PING") cnx->queue->sendCTCPReply (nick, "PING", rest); else if (command == "VERSION") - cnx->queue->sendCTCPReply (nick, "VERSION", cnx->bot->versionString); + { + cnx->queue->sendCTCPReply (nick, "VERSION", cnx->bot->versionString); + } else if (command == "CLOCK") { time_t diff = time (NULL) - cnx->bot->startTime; @@ -872,6 +874,13 @@ Parser::parseCTCP (ServerConnection * cnx, else if (command == "ACTION") { cnx->bot->botInterp->RunHooks (Hook::ACTION, + // FIXME: from->getAddress should + // be nick. MAYBE, depending on + // whether this could be + // considered a bug or a feature + // change to normalize + // hooks/action with the other + // hooks. Maybe a 3.0 change? from->getAddress () + " " + to + " " + rest, scm_listify (Utils::