From 3a3e52b763245b52b7798fd53d4866930f812321 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sun, 2 Aug 2026 19:58:26 +0200 Subject: Fix crash when IRC mod is not identified --- src/crsm.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; foreach(const CmdArgType& cmd, ircModFifos[subject.nick]) { -- cgit v1.2.3-54-g00ecf