From 8b279dde81198c7ebe95e4913e319fecb6fd57da Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 19 Apr 2015 23:09:01 +0200
Subject: degesch: disallow /quote from the global buffer
---
degesch.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/degesch.c b/degesch.c
index 7199251..798344f 100644
--- a/degesch.c
+++ b/degesch.c
@@ -2220,7 +2220,11 @@ handle_command_part (struct app_context *ctx, char *arguments)
static void
handle_command_quote (struct app_context *ctx, char *arguments)
{
- irc_send (ctx, arguments);
+ if (ctx->current_buffer->type == BUFFER_GLOBAL)
+ buffer_send_error (ctx, ctx->current_buffer,
+ "Can't do this from a global buffer");
+ else
+ irc_send (ctx, arguments);
}
static struct command_handler
--
cgit v1.2.3-70-g09d2