|
|
@@ -1530,8 +1530,11 @@ static void cmd_botcmd(int idx, char *par)
|
|
|
|
|
|
/* the rest of the cmd will be logged remotely */
|
|
|
putlog(LOG_CMDS, "*", "#%s# botcmd %s %s ...", dcc[idx].nick, botm, cmd);
|
|
|
- if (!strcmp(botm, "*") && (!strcmp(botm, "di") || !strcmp(botm, "die"))) {
|
|
|
- dprintf(idx, "Not a good idea.\n");
|
|
|
+ if (!strcmp(botm, "*")) {
|
|
|
+ if (!strcmp(botm, "di") || !strcmp(botm, "die"))
|
|
|
+ dprintf(idx, "Not a good idea.\n");
|
|
|
+ else if (!dcc[idx].u->flags & USER_OWNER)
|
|
|
+ dprintf(idx, "'botcmd *' is limited to +n only.\n");
|
|
|
return;
|
|
|
}
|
|
|
|