summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-06-10 12:51:56 +0100
committerSadie Powell <sadie@witchery.services>2024-06-10 12:51:56 +0100
commit88ac47e2178a4e1996211fe5f7b2e692c8fcd319 (patch)
treef0c1e94b7c0362d536f177fbf910659be6f96707 /include
parent8a1bffba9b0ebaa037b8ab9922e96f5cb2616e0c (diff)
The sender can be null in OnBotUnAssign.
Diffstat (limited to 'include')
-rw-r--r--include/modules.h2
1 files changed, 1 insertions, 1 deletions
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.