// 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"
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;
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;
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::