Changeset e2fcbc7 in code


Ignore:
Timestamp:
Mar 3, 2014, 12:51:58 AM (11 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
a202ff1
Parents:
a203cdb
Message:

Notify the user when mod passing fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    ra203cdb re2fcbc7  
    285285        struct icb_session *s;
    286286
    287         if (!ig->mod)           /* if there is no mod, let anyone grab it */
    288                 (void)icb_pass(ig, ig->mod, is);
    289         else if (icb_ismod(ig, is)) {
     287        if (!ig->mod) {         /* if there is no mod, let anyone grab it */
     288                if (icb_pass(ig, ig->mod, is) < 0)
     289                        icb_error(is, "Acquiring group moderation failed.");
     290        } else if (icb_ismod(ig, is)) {
    290291                if (strlen(arg) == 0) {
    291292                        /* no argument: relinquish moderator */
     
    301302                        return;
    302303                }
    303                 (void)icb_pass(ig, ig->mod, s);
     304                if (icb_pass(ig, ig->mod, s) < 0)
     305                        icb_error(s, "Acquiring group moderation failed.");
    304306        }
    305307}
Note: See TracChangeset for help on using the changeset viewer.