summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/ircproto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-01-20 18:19:21 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-01-20 18:19:21 +0300
commit055f58333a846d1be947c662f2736f3e8953cee5 (patch)
tree7f4cfbee84e408d37c878bc54bfc19d201b8b699 /protocols/IRCG/src/ircproto.cpp
parent74d5c3ad61cfd5cb656b8a1cb52d153913d2b7a1 (diff)
fixes #3000 (IRC: не нужно сообщать об ошибках протокола, если он не в сети)
Diffstat (limited to 'protocols/IRCG/src/ircproto.cpp')
-rw-r--r--protocols/IRCG/src/ircproto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp
index 28f5e032f7..365b3eeb51 100644
--- a/protocols/IRCG/src/ircproto.cpp
+++ b/protocols/IRCG/src/ircproto.cpp
@@ -627,7 +627,7 @@ int CIrcProto::SetStatus(int iNewStatus)
int CIrcProto::SetStatusInternal(int iNewStatus, bool bIsInternal)
{
- if (iNewStatus != ID_STATUS_OFFLINE && !m_nick[0] || !m_userID[0] || !m_name[0]) {
+ if (iNewStatus != ID_STATUS_OFFLINE && (!m_nick[0] || !m_userID[0] || !m_name[0])) {
Clist_TrayNotifyW(m_szModuleName, TranslateT("IRC error"), TranslateT("Connection cannot be established! You have not completed all necessary fields (Nickname, User ID and Full name)."), NIIF_ERROR, 15000);
return 0;
}