degesch: disallow /quote from the global buffer
This commit is contained in:
parent
10f1575677
commit
8b279dde81
@ -2220,6 +2220,10 @@ handle_command_part (struct app_context *ctx, char *arguments)
|
||||
static void
|
||||
handle_command_quote (struct app_context *ctx, char *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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user