Changeset 8886035 in code for cmd.c


Ignore:
Timestamp:
Dec 24, 2013, 3:30:13 PM (11 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
4d92f03
Parents:
7eb46d4
git-author:
Stuart Henderson <stu@…> (03/18/13 00:45:11)
git-committer:
Mike Belopuhov <mike@…> (12/24/13 15:30:13)
Message:

restrict setting topic to mod

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    r7eb46d4 r8886035  
    234234                        icb_status(is, STATUS_TOPIC, "The topic is not set.");
    235235        } else {                /* setting the topic */
     236                if (!icb_ismoder(ig, is)) {
     237                        icb_status(is, STATUS_NOTIFY, "Setting the topic is "
     238                            "only for moderators.");
     239                        return;
     240                }
    236241                strlcpy(ig->topic, arg, sizeof ig->topic);
    237242                icb_status_group(ig, NULL, STATUS_TOPIC,
Note: See TracChangeset for help on using the changeset viewer.