Changeset 7e4f439c


Ignore:
Timestamp:
2016-09-20T03:39:05Z (8 years ago)
Author:
jgeboski <jgeboski@…>
Branches:
master
Children:
028ca92
Parents:
725f942
git-author:
Marius Halden <marius.h@…> (26-07-16 17:44:18)
git-committer:
jgeboski <jgeboski@…> (20-09-16 03:39:05)
Message:

Do not try to list chatrooms if account is offline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r725f942 r7e4f439c  
    12341234
    12351235                if (cmd[3][0] == '!') {
    1236                         if (!acc->prpl->chat_list) {
     1236                        if (!acc->ic || !(acc->ic->flags & OPT_LOGGED_IN)) {
     1237                                irc_rootmsg(irc, "Not logged in to account.");
     1238                                return;
     1239                        } else if (!acc->prpl->chat_list) {
    12371240                                irc_rootmsg(irc, "Listing chatrooms not supported on that account.");
    12381241                                return;
     
    12881291                if (!(acc = account_get(irc->b, cmd[2]))) {
    12891292                        irc_rootmsg(irc, "Invalid account");
     1293                        return;
     1294                } else if (!acc->ic || !(acc->ic->flags & OPT_LOGGED_IN)) {
     1295                        irc_rootmsg(irc, "Not logged in to account.");
    12901296                        return;
    12911297                } else if (!acc->prpl->chat_list) {
Note: See TracChangeset for help on using the changeset viewer.