summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_park.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/modules/m_park.cpp b/src/modules/m_park.cpp
index f7d54e730..8e7a40bdb 100644
--- a/src/modules/m_park.cpp
+++ b/src/modules/m_park.cpp
@@ -206,6 +206,22 @@ class ModulePark : public Module
output = output + std::string(" PARK");
}
+ virtual void OnUserQuit(userrec* user)
+ {
+ std::string nick = user->nick;
+ // track quits in our parked user list
+ for (parkinfo::iterator j = pinfo.begin(); j != pinfo.end(); j++)
+ {
+ if (j->nick == nick)
+ {
+ pinfo.erase(j);
+ break;
+ }
+ }
+ return 0;
+ }
+
+
virtual void OnPrePrivmsg(userrec* user, userrec* dest, std::string text)
{
awaylog* awy = (awaylog*)dest->GetExt("park_awaylog");