svn: 1254
@@ -39,6 +39,7 @@ This is a summary of ChangeLog basically.
* cmd_mop no longer ops users without a pass set.
* Alphabetized config list
* cmd_mns_host now accepts multiple hosts
+* Fixed cmd_comment to work like cmd_whois/match with regards to accessing higher level users.
1.1.9
@@ -1743,9 +1743,8 @@ static void cmd_comment(struct userrec *u, int idx, char *par)
dprintf(idx, "No such user!\n");
return;
}
- if ((u1->flags & USER_OWNER) && !(u && (u->flags & USER_OWNER)) &&
- egg_strcasecmp(handle, dcc[idx].nick)) {
- dprintf(idx, "You can't change comment on a bot owner.\n");
+ if (whois_access(dcc[idx].user, u1))
+ dprintf(idx, "You can't change comment on higher level users.\n");
putlog(LOG_CMDS, "*", "#%s# comment %s %s", dcc[idx].nick, handle, par);