1
0
Эх сурвалжийг харах

* Only +n can use .chanset * now

Bryan Drewery 16 жил өмнө
parent
commit
d04f652ddd

+ 1 - 0
doc/UPDATES

@@ -1,5 +1,6 @@
 * Fix crash related to slowpart
 * Fixed parsing errors in .chanset
+* Only global +n can use .chanset * now
 
 1.3 - http://wraith.botpack.net/milestone/1.3
 * Binary / shell / startup changes

+ 2 - 2
src/mod/channels.mod/cmdschan.c

@@ -1340,8 +1340,8 @@ static void cmd_chanset(int idx, char *par)
     if (!strncmp(chname, "*", 1)) {
       all = 1;
       get_user_flagrec(dcc[idx].user, &user, chanset ? chanset->dname : "");
-      if (!glob_master(user)) {
-        dprintf(idx, "You need to be a global master to use '%schanset *'.\n", (dcc[idx].u.chat->channel >= 0) ? settings.dcc_prefix : "");
+      if (!glob_owner(user)) {
+        dprintf(idx, "You need to be a global owner to use '%schanset *'.\n", (dcc[idx].u.chat->channel >= 0) ? settings.dcc_prefix : "");
         return;
       }
     } else if (!strcasecmp(chname, "default")) {