diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 22:43:37 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 22:43:37 +0000 |
commit | 872372d4bff7fa415e67e7a4083d454b529dce45 (patch) | |
tree | a1a47a5d1127d95c09bb4d9b84f85adffe3c2b6b /src | |
parent | 708b62a6339942f926d4764527473be1433dd8bb (diff) |
Modified to omit unimplemented module methods
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2675 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_modules.cpp | 5 |
1 files 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]); } } } |