mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Added a message when an invalid /delete appears
This commit is contained in:
parent
3c1d264689
commit
ae0122e389
1 changed files with 11 additions and 1 deletions
|
@ -552,7 +552,17 @@ void IrcMessageHandler::handleNoticeMessage(Communi::IrcNoticeMessage *message)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
channel->addMessage(msg);
|
QString tags = message->tags().value("msg-id", "").toString();
|
||||||
|
if (tags == "bad_delete_message_error" || tags == "usage_delete")
|
||||||
|
{
|
||||||
|
channel->addMessage(makeSystemMessage(
|
||||||
|
"Usage: \"/delete <msg-id>\" - can't take more "
|
||||||
|
"than one argument"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
channel->addMessage(msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue