summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-23 19:25:34 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-23 19:25:34 +0300
commitba634391342d703c7ff377a9955334629246fe9b (patch)
tree870f886abc373aec9eadfa01ba9a8200c3ea558d /src/mir_app
parentfad8f014de1584912a2e2ab022de9e76e937dd24 (diff)
no need to check si here
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/chat_svc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp
index a7011a0a44..b07278669d 100644
--- a/src/mir_app/src/chat_svc.cpp
+++ b/src/mir_app/src/chat_svc.cpp
@@ -546,7 +546,7 @@ static BOOL HandleChatEvent(GCEVENT &gce, int bManyFix)
if (gce.iType == GC_EVENT_JOIN && gce.time == 0)
return 0;
- if (si && (si->bInitDone || gce.iType == GC_EVENT_TOPIC || (gce.iType == GC_EVENT_JOIN && gce.bIsMe))) {
+ if (si->bInitDone || gce.iType == GC_EVENT_TOPIC || (gce.iType == GC_EVENT_JOIN && gce.bIsMe)) {
if (gce.pszNick.w == nullptr && gce.pszUID.w != nullptr)
if (USERINFO *ui = g_chatApi.UM_FindUser(si, gce.pszUID.w))
gce.pszNick.w = ui->pszNick;