From 872372d4bff7fa415e67e7a4083d454b529dce45 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 26 Dec 2005 22:43:37 +0000 Subject: Modified to omit unimplemented module methods git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2675 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_modules.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmd_modules.cpp b/src/cmd_modules.cpp index cb3ab20ac..4a7b3b25d 100644 --- a/src/cmd_modules.cpp +++ b/src/cmd_modules.cpp @@ -110,7 +110,7 @@ void cmd_modules::Handle (char **parameters, int pcnt, userrec *user) *dlist = 0; for (int v = 0; v < 4; v++) { - if (itab[it]) + if ((itab[it]) && (Config->implement_lists[i][it])) { snprintf(data,MAXBUF,"%s=>%c ",itab[it],(Config->implement_lists[i][it] ? '1' : '0')); strncat(dlist,data,MAXBUF); @@ -123,7 +123,8 @@ void cmd_modules::Handle (char **parameters, int pcnt, userrec *user) WriteServ(user->fd,"900 %s :=== DEBUG: Implementation counts ===",user->nick); for (int it = 0; itab[it]; it++) { - WriteServ(user->fd,"900 %s :%s: %d times",user->nick, itab[it],(int)Config->global_implementation[it]); + if (Config->global_implementation[it]) + WriteServ(user->fd,"900 %s :%s: %d times",user->nick, itab[it],(int)Config->global_implementation[it]); } } } -- cgit v1.2.3