diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-04-19 23:09:01 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-04-19 23:09:01 +0200 |
commit | 8b279dde81198c7ebe95e4913e319fecb6fd57da (patch) | |
tree | fd9613ee4bedf649e8b5ac26575027b456c7ccd1 /degesch.c | |
parent | 10f15756774d37b0f1bdeeffd8e912bd10630080 (diff) | |
download | xK-8b279dde81198c7ebe95e4913e319fecb6fd57da.tar.gz xK-8b279dde81198c7ebe95e4913e319fecb6fd57da.tar.xz xK-8b279dde81198c7ebe95e4913e319fecb6fd57da.zip |
degesch: disallow /quote from the global buffer
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |