diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-13 01:43:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-13 01:43:42 +0000 |
commit | bed4708bf73b179f07b543e16f3bf7e86904f746 (patch) | |
tree | 46ad9da3d571af48f36c37be1bb5f04df49541a6 | |
parent | a63ba66f5d1e8c4cee371bc94012272bed482e2c (diff) |
Track user quits in the park list
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1065 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_park.cpp | 16 |
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"); |