From 74377ece178e661194a40fa79238b3089bb0d0f2 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 28 Feb 2011 18:48:58 +0100 Subject: Cleaned up unneeded files, some bugfixes ismaster/isuser now gets called with origin_raw --- TConnection.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'TConnection.cpp') diff --git a/TConnection.cpp b/TConnection.cpp index e73b088..eb1271b 100644 --- a/TConnection.cpp +++ b/TConnection.cpp @@ -652,6 +652,12 @@ void TConnection::deluser(string nick) bool TConnection::isuser(string nick) { + if (nick.find('!')==string::npos) + { + cout << "WARNING: called isuser() with stripped nick instead of raw_nick. returning false" << endl; + return false; + } + if ((users_li.isinlist(cut_nick(nick))) && (users_li.get_info(cut_nick(nick))!=nick)) //still logged in, but wrong hostmask? { cout << "removing '"<