diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 11:03:12 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 11:03:12 +0000 |
commit | 7047c17eab3391a372e0e06cb63d475a3fddcfb8 (patch) | |
tree | 373556168932df2211e1262712542e34d27b0f2c | |
parent | cb14d57cfb9b5d4c194090ef50bcdbba5acfc006 (diff) |
Fix m_cban /stats C, broken after the XLine conversion some months ago
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9977 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_cban.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 26ae7be0d..0452bff7c 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -173,9 +173,13 @@ class ModuleCBan : public Module ServerInstance->XLines->UnregisterFactory(f); } - virtual int OnStats(char symbol, User* user, string_list &results) + virtual int OnStats(char symbol, User* user, string_list &out) { - return 0; + if (symbol != 'C') + return 0; + + ServerInstance->XLines->InvokeStats("CBAN", 210, user, out); + return 1; } virtual int OnUserPreJoin(User *user, Channel *chan, const char *cname, std::string &privs, const std::string &keygiven) |