From 19b55a6873bb2d75982a3394e9b36faea62661fe Mon Sep 17 00:00:00 2001 From: Emil Date: Thu, 17 Aug 2023 06:01:20 -0600 Subject: [PATCH] Hotfix --- src/api.c | 2 ++ src/irc.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api.c b/src/api.c index ea66c67..02e2462 100644 --- a/src/api.c +++ b/src/api.c @@ -78,6 +78,7 @@ remind(char * who) return r; } +#if 0 DECL void set_repo(char const * const who, char const * const link) @@ -87,6 +88,7 @@ set_repo(char const * const who, DBERR(sqlite3_bind_text(set_repo_stmt, 2, who, -1, SQLITE_STATIC)); DBERR(sqlite3_step(set_repo_stmt)); } +#endif /* 0 */ #ifndef NO_VULN_COMMANDS diff --git a/src/irc.c b/src/irc.c index 9e27192..45d0746 100644 --- a/src/irc.c +++ b/src/irc.c @@ -239,7 +239,7 @@ parse_command(char const * cmd) ircmsg(creds.channel, "%s: %s", current_username, msgswp); } #endif /* 0 */ - else if (strncmp(cmd, "magic", 5) == 0) + if (strncmp(cmd, "magic", 5) == 0) { ircmsg(creds.channel, "%s: " IRC_YELLOW "%d" IRC_STOP, current_username, (rand() % atoi(arg)) + 1); } else if (strncmp(cmd, "poll", 4) == 0) {