summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd_modules.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cmd_modules.cpp b/src/cmd_modules.cpp
index 4a7b3b25d..93908d21d 100644
--- a/src/cmd_modules.cpp
+++ b/src/cmd_modules.cpp
@@ -110,10 +110,13 @@ void cmd_modules::Handle (char **parameters, int pcnt, userrec *user)
*dlist = 0;
for (int v = 0; v < 4; v++)
{
- if ((itab[it]) && (Config->implement_lists[i][it]))
+ if (itab[it])
{
- snprintf(data,MAXBUF,"%s=>%c ",itab[it],(Config->implement_lists[i][it] ? '1' : '0'));
- strncat(dlist,data,MAXBUF);
+ if (Config->implement_lists[i][it])
+ {
+ snprintf(data,MAXBUF,"%s=>%c ",itab[it],(Config->implement_lists[i][it] ? '1' : '0'));
+ strncat(dlist,data,MAXBUF);
+ }
it++;
}
}