summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.at>2026-08-02 19:58:26 +0200
committerMarkus Mittendrein <git@maxmitti.at>2026-08-02 19:58:26 +0200
commit3a3e52b763245b52b7798fd53d4866930f812321 (patch)
treed72e0d872d791f1e7e8bebade578aa740f4ac159
parent9e868927bd5f86872bad7269d7909e06a1e59570 (diff)
downloadmanager-master.tar.gz
manager-master.zip
Fix crash when IRC mod is not identifiedHEADmaster
-rw-r--r--src/crsm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp
index b5f0049..66a93f4 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -3649,7 +3649,10 @@ IRC_CHECK_CALLBACK_IMPL(ircModCmd)
{
if(ircModFifos.contains(subject.nick))
{
- rightsFailMessage(subject, ircModFifos[subject.nick].first().first.userType);
+ if(!ircModFifos[subject.nick].empty())
+ {
+ rightsFailMessage(subject, ircModFifos[subject.nick].first().first.userType);
+ }
using CmdArgType = QPair<CmdFunctionRef, QString>;
foreach(const CmdArgType& cmd, ircModFifos[subject.nick])
{