Changeset a203cdb in code for cmd.c


Ignore:
Timestamp:
Mar 3, 2014, 12:39:52 AM (11 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
e2fcbc7
Parents:
59a7416
git-author:
Stuart Henderson <stu@…> (03/02/14 20:44:11)
git-committer:
Mike Belopuhov <mike@…> (03/03/14 00:39:52)
Message:

allow relinquishing moderator ("/pass")

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    r59a7416 ra203cdb  
    288288                (void)icb_pass(ig, ig->mod, is);
    289289        else if (icb_ismod(ig, is)) {
     290                if (strlen(arg) == 0) {
     291                        /* no argument: relinquish moderator */
     292                        (void)icb_pass(ig, ig->mod, NULL);
     293                        return;
     294                }
    290295                LIST_FOREACH(s, &ig->sess, entry) {
    291296                        if (strcmp(s->nick, arg) == 0)
Note: See TracChangeset for help on using the changeset viewer.