summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-26 18:24:19 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-26 18:24:19 +0200
commit950d64d229e6740a2e25c8aa7d8bdd770b30054b (patch)
tree68ac360c51cf1814a52781df6bf4ae27521c60d9 /degesch.c
parent864be7cfc54e310ffbd471ce9fefd6230daba468 (diff)
downloadxK-950d64d229e6740a2e25c8aa7d8bdd770b30054b.tar.gz
xK-950d64d229e6740a2e25c8aa7d8bdd770b30054b.tar.xz
xK-950d64d229e6740a2e25c8aa7d8bdd770b30054b.zip
degesch: little fixes
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/degesch.c b/degesch.c
index d1b7dbc..e1741f7 100644
--- a/degesch.c
+++ b/degesch.c
@@ -2066,7 +2066,7 @@ make_prompt (struct app_context *ctx, struct str *output)
if (buffer != ctx->global_buffer)
{
str_append_c (output, ' ');
- if (!ctx->irc_fd == -1)
+ if (ctx->irc_fd == -1)
str_append (output, "(disconnected)");
else
{
@@ -3167,7 +3167,7 @@ handle_command_quote (struct app_context *ctx, char *arguments)
if (!server_command_check (ctx, "quote"))
return true;
- irc_send (ctx, arguments);
+ irc_send (ctx, "%s", arguments);
return true;
}