summaryrefslogtreecommitdiff
path: root/src/plugins/aspell/weechat-aspell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/aspell/weechat-aspell.c')
-rw-r--r--src/plugins/aspell/weechat-aspell.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c
index 9cba2b1e3..76a3a8c11 100644
--- a/src/plugins/aspell/weechat-aspell.c
+++ b/src/plugins/aspell/weechat-aspell.c
@@ -948,15 +948,15 @@ int speller_command (t_weechat_plugin *p,
char *handler_args,
void *handler_pointer)
{
+ char helpcmd[32];
+ char **args;
+ int c, r;
+
/* make gcc happy */
(void) p;
(void) handler_args;
(void) handler_pointer;
- char helpcmd[32];
- char **args;
- int c, r;
-
snprintf(helpcmd, sizeof(helpcmd), "/help %s", plugin_command);
r = 0;
@@ -1015,16 +1015,16 @@ int speller_command (t_weechat_plugin *p,
int keyb_check (t_weechat_plugin *p, int argc, char **argv,
char *handler_args, void *handler_pointer)
{
- /* make gcc happy */
- (void) p;
- (void) handler_args;
- (void) handler_pointer;
-
char *server, *channel;
config_t *c;
char *input, *ptr_input, *pos_space;
int count;
+ /* make gcc happy */
+ (void) p;
+ (void) handler_args;
+ (void) handler_pointer;
+
channel = plugin->get_info (plugin, "channel", NULL);
server = plugin->get_info (plugin, "server", NULL);
@@ -1141,12 +1141,12 @@ int weechat_plugin_init (t_weechat_plugin *p)
*/
void weechat_plugin_end (t_weechat_plugin *p)
{
- /* make gcc happy */
- (void) p;
-
speller_t *s, *t;
config_t *c, *d;
+ /* make gcc happy */
+ (void) p;
+
options_save ();
config_save ();