Changeset a8196d6 for root_commands.c


Ignore:
Timestamp:
2021-03-23T14:17:27Z (3 years ago)
Author:
Petr Vaněk <arkamar@…>
Branches:
master
Children:
18a0f99
Parents:
75222ab
git-author:
Petr Vaněk <arkamar@…> (23-03-21 12:07:18)
git-committer:
Petr Vaněk <arkamar@…> (23-03-21 14:17:27)
Message:

root_commands: prevent linker error when plugins are disabled

This commit fixes compilation issue with disabled plugin support
(./configure --plugins=0), where get_plugins function is unavailable.
The problem has been introduced with addition of new 'plugins info'
subcommand, where get_plugins is used in cmd_plugins_info function,
which should be conditionally available only if WITH_PLUGINS is defined.

Bug: https://bugs.gentoo.org/739510
Bug: https://bugs.gentoo.org/617604
Fixes: 6908ab747d1e ("Add 'plugins info' subcommand, only show plugin details there")
Signed-off-by: Petr Vaněk <arkamar@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r75222ab ra8196d6  
    11691169}
    11701170
     1171#ifdef WITH_PLUGINS
    11711172static void cmd_plugins_info(irc_t *irc, char **cmd)
    11721173{
     
    12021203        }
    12031204}
     1205#endif
    12041206
    12051207static void cmd_plugins(irc_t *irc, char **cmd)
     
    12091211
    12101212        if (cmd[1] && g_strcasecmp(cmd[1], "info") == 0) {
     1213#ifdef WITH_PLUGINS
    12111214                cmd_plugins_info(irc, cmd);
     1215#endif
    12121216                return;
    12131217        }
Note: See TracChangeset for help on using the changeset viewer.