Replaced the GetNick().Equals() with NickEquals() where possible

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
This commit is contained in:
Toon Schoenmakers
2013-10-10 22:35:49 +02:00
parent 9166f5a250
commit 98ceafb1ba
7 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -78,7 +78,7 @@ public:
void OnNick(const CNick& Nick, const CString& sNewNick, const vector<CChan*>& vChans) {
if (sNewNick == m_pNetwork->GetIRCSock()->GetNick()) {
// We are changing our own nick
if (Nick.GetNick().Equals(GetNick())) {
if (Nick.NickEquals(GetNick())) {
// We are changing our nick away from the conf setting.
// Let's assume the user wants this and disable
// this module (to avoid fighting nickserv).
@@ -92,14 +92,14 @@ public:
}
// If the nick we want is free now, be fast and get the nick
if (Nick.GetNick().Equals(GetNick())) {
if (Nick.NickEquals(GetNick())) {
KeepNick();
}
}
void OnQuit(const CNick& Nick, const CString& sMessage, const vector<CChan*>& vChans) {
// If someone with the nick we want quits, be fast and get the nick
if (Nick.GetNick().Equals(GetNick())) {
if (Nick.NickEquals(GetNick())) {
KeepNick();
}
}