Renamed IsNick to NickEquals

Also added a TODO to add proper IRC case comparing.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
This commit is contained in:
Toon Schoenmakers
2013-10-10 18:36:03 +02:00
parent 83b9a28e4c
commit 9166f5a250
3 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -512,7 +512,7 @@ void CIRCSock::ReadLine(const CString& sData) {
}
}
if (Nick.IsNick(GetNick())) {
if (Nick.NickEquals(GetNick())) {
// We are changing our own nick, the clients always must see this!
bIsVisible = false;
SetNick(sNewNick);
@@ -562,7 +562,7 @@ void CIRCSock::ReadLine(const CString& sData) {
CString sChan = sRest.Token(0).TrimPrefix_n();
CChan* pChan;
if (Nick.IsNick(GetNick())) {
if (Nick.NickEquals(GetNick())) {
m_pNetwork->AddChan(sChan, false);
pChan = m_pNetwork->FindChan(sChan);
if (pChan) {
@@ -596,7 +596,7 @@ void CIRCSock::ReadLine(const CString& sData) {
bDetached = true;
}
if (Nick.IsNick(GetNick())) {
if (Nick.NickEquals(GetNick())) {
m_pNetwork->DelChan(sChan);
}