View Issue Details

IDProjectCategoryView StatusLast Update
0001584Anope Development (1.9.x series)Botservpublic2014-04-26 22:45
ReporterCMF2000 Assigned ToAdam  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001584: When we are destroying a bot, OnUserQuit is never called
DescriptionBut many modules like irc2sql are only using OnUserQuit to detect disconnects.
In this case, if you unassign a bot then irc2sql won't delete the user entry in the sql database.

I know, the other option is to use OnPreUserLogoff instead of OnUserQuit.
Additional InformationA possible fix:

*** bots.cpp.old 2014-04-06 00:01:20.000000000 +0200
--- bots.cpp 2014-04-06 00:01:56.000000000 +0200
***************
*** 56,59 ****
--- 56,60 ----
        {
                IRCD->SendQuit(this, "");
+ FOREACH_MOD(OnUserQuit, (this, ""));
                this->introduced = false;
                XLine x(this->nick);
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2014-04-06 01:08 CMF2000 New Issue
2014-04-26 22:45 Adam Status new => resolved
2014-04-26 22:45 Adam Resolution open => fixed
2014-04-26 22:45 Adam Assigned To => Adam