Mercurial > irccd
diff lib/irccd/irccd.c @ 971:f365e5be1261
misc: remove more stdbool
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 03 Feb 2021 15:03:12 +0100 |
parents | 5ded2b4994af |
children | 5ffc8350e84b |
line wrap: on
line diff
--- a/lib/irccd/irccd.c Wed Feb 03 20:05:00 2021 +0100 +++ b/lib/irccd/irccd.c Wed Feb 03 15:03:12 2021 +0100 @@ -48,14 +48,14 @@ static int pipes[2]; -static bool +static int is_command(const struct irc_plugin *p, const struct irc_event *ev) { const char *cc; size_t ccsz; if (ev->type != IRC_EVENT_MESSAGE) - return false; + return 0; /* Get the command prefix (e.g !)*/ cc = ev->server->commandchar; @@ -85,7 +85,7 @@ return ev; } -static bool +static int invokable(const struct irc_plugin *p, const struct irc_event *ev) { switch (ev->type) { @@ -136,7 +136,7 @@ return irc_rule_matchlist(&irc.rules, ev->server->name, NULL, NULL, p->name, "onWhois"); default: - return true; + return 1; } }