1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 02:53:13 +02:00

- Made it so if the channel is +m but -t, you need at least voice (+v) to change the topic.

Reported by aquanight (#0002233).
[commit accidently happened earlier btw...]
This commit is contained in:
Bram Matthys
2006-04-09 20:17:25 +00:00
parent e0b116a663
commit 4530ee5219
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1102,3 +1102,5 @@
- Improved CHROOTDIR documentation in include/config.h
- Added error if CHROOTDIR is defined but IRC_UID isn't (in include/config.h).
- Hide stats request if requested by an U-lined client. Suggested by vonitsanet (#0002865).
- Made it so if the channel is +m but -t, you need at least voice (+v) to change the topic.
Reported by aquanight (#0002233).
+1 -1
View File
@@ -260,7 +260,7 @@ long flags = 0; /* cache: membership flags */
{
char buf[512];
/* With +m and -t, only voice and higher may change the topic */
ircsprintf(buf, "You need at least voice (+v) in order to change the topic on %s (channel is +m)", chptr->chname);
ircsprintf(buf, "Voice (+v) or higher is required in order to change the topic on %s (channel is +m)", chptr->chname);
sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND), me.name, parv[0], "TOPIC", buf);
return -1;
}