From 88ac47e2178a4e1996211fe5f7b2e692c8fcd319 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 10 Jun 2024 12:51:56 +0100 Subject: [PATCH] The sender can be null in OnBotUnAssign. --- include/modules.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/modules.h b/include/modules.h index 7192092ba..8414fd167 100644 --- a/include/modules.h +++ b/include/modules.h @@ -324,7 +324,7 @@ public: * @param ci The channel the bot is being removed from * @return EVENT_CONTINUE to let other modules decide, EVENT_STOP to deny the unassign. */ - virtual EventReturn OnBotUnAssign(User *sender, ChannelInfo *ci) ATTR_NOT_NULL(2, 3) { throw NotImplementedException(); } + virtual EventReturn OnBotUnAssign(User *sender, ChannelInfo *ci) ATTR_NOT_NULL(3) { throw NotImplementedException(); } /** Called when a new user connects to the network. * @param u The connecting user.