From 7047c17eab3391a372e0e06cb63d475a3fddcfb8 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 12 Jul 2008 11:03:12 +0000 Subject: 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 --- src/modules/m_cban.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/modules/m_cban.cpp') 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) -- cgit v1.2.3