diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-12-11 17:34:31 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-12-11 17:34:31 +0100 |
commit | 061b0e5c580d9dc8f9d88be22fca66dfcf407a17 (patch) | |
tree | ac84f4ab22db8c0077160e4b4b62cf0a9c0d45cb /src/plugins/irc/irc-command.h | |
parent | 43c49926d4ec08c287303f93f94c3a3d12d9deba (diff) | |
download | weechat-061b0e5c580d9dc8f9d88be22fca66dfcf407a17.zip |
Many changes in IRC plugin, added IRC specific completions
Diffstat (limited to 'src/plugins/irc/irc-command.h')
-rw-r--r-- | src/plugins/irc/irc-command.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/plugins/irc/irc-command.h b/src/plugins/irc/irc-command.h index e4821e6ea..d4c4eb66a 100644 --- a/src/plugins/irc/irc-command.h +++ b/src/plugins/irc/irc-command.h @@ -22,27 +22,6 @@ #include "irc-server.h" -#define IRC_COMMAND_GET_SERVER(__buffer) \ - struct t_weechat_plugin *buffer_plugin = NULL; \ - struct t_irc_server *ptr_server = NULL; \ - buffer_plugin = weechat_buffer_get (__buffer, "plugin"); \ - if (buffer_plugin == weechat_irc_plugin) \ - ptr_server = irc_server_search ( \ - weechat_buffer_get (__buffer, "category")); - -#define IRC_COMMAND_GET_SERVER_CHANNEL(__buffer) \ - struct t_weechat_plugin *buffer_plugin = NULL; \ - struct t_irc_server *ptr_server = NULL; \ - struct t_irc_channel *ptr_channel = NULL; \ - buffer_plugin = weechat_buffer_get (__buffer, "plugin"); \ - if (buffer_plugin == weechat_irc_plugin) \ - { \ - ptr_server = irc_server_search ( \ - weechat_buffer_get (__buffer, "category")); \ - ptr_channel = irc_channel_search ( \ - ptr_server, weechat_buffer_get (__buffer, "name")); \ - } - #define IRC_COMMAND_TOO_FEW_ARGUMENTS(__buffer, __command) \ weechat_printf (__buffer, \ _("%sirc: too few arguments for \"%s\" command"), \ @@ -50,7 +29,9 @@ return WEECHAT_RC_ERROR; +extern void irc_command_away_server (struct t_irc_server *, char *); extern void irc_command_join_server (struct t_irc_server *, char *); +extern void irc_command_mode_server (struct t_irc_server *, char *); extern void irc_command_quit_server (struct t_irc_server *, char *); extern void irc_command_init (); |