From 4530ee5219e1e6ffaa980c8153f35c7e5b474a7f Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 9 Apr 2006 20:17:25 +0000 Subject: [PATCH] - 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...] --- Changes | 2 ++ src/modules/m_topic.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index add811f2c..a75ac3d8d 100644 --- a/Changes +++ b/Changes @@ -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). diff --git a/src/modules/m_topic.c b/src/modules/m_topic.c index 50ae4f7aa..a07792770 100644 --- a/src/modules/m_topic.c +++ b/src/modules/m_topic.c @@ -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; }