mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
xfer: keep spaces at the end of /me command arguments
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "xfer.h"
|
||||
#include "xfer-buffer.h"
|
||||
#include "xfer-chat.h"
|
||||
#include "xfer-command.h"
|
||||
#include "xfer-config.h"
|
||||
|
||||
|
||||
@@ -253,7 +254,9 @@ xfer_command_xfer (const void *pointer, void *data,
|
||||
void
|
||||
xfer_command_init ()
|
||||
{
|
||||
weechat_hook_command (
|
||||
struct t_hook *ptr_hook;
|
||||
|
||||
ptr_hook = weechat_hook_command (
|
||||
"me",
|
||||
N_("send a CTCP action to remote host"),
|
||||
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */
|
||||
@@ -262,6 +265,7 @@ xfer_command_init ()
|
||||
N_("message: message to send")),
|
||||
NULL,
|
||||
&xfer_command_me, NULL, NULL);
|
||||
XFER_COMMAND_KEEP_SPACES;
|
||||
weechat_hook_command (
|
||||
"xfer",
|
||||
N_("xfer control"),
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef WEECHAT_PLUGIN_XFER_COMMAND_H
|
||||
#define WEECHAT_PLUGIN_XFER_COMMAND_H
|
||||
|
||||
#define XFER_COMMAND_KEEP_SPACES weechat_hook_set (ptr_hook, "keep_spaces_right", "1")
|
||||
|
||||
extern void xfer_command_init ();
|
||||
|
||||
#endif /* WEECHAT_PLUGIN_XFER_COMMAND_H */
|
||||
|
||||
Reference in New Issue
Block a user