diff options
Diffstat (limited to 'src/plugins/irc/irc-command.h')
-rw-r--r-- | src/plugins/irc/irc-command.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-command.h b/src/plugins/irc/irc-command.h index ed5fe489f..66997bd9d 100644 --- a/src/plugins/irc/irc-command.h +++ b/src/plugins/irc/irc-command.h @@ -20,6 +20,18 @@ #ifndef __WEECHAT_IRC_COMMAND_H #define __WEECHAT_IRC_COMMAND_H 1 +#define IRC_COMMAND_GET_SERVER(buffer) \ + struct t_irc_server *ptr_server = irc_server_search ( \ + weechat_buffer_get (buffer, "category")) + +#define IRC_COMMAND_GET_SERVER_CHANNEL(buffer) \ + struct t_irc_server *ptr_server = irc_server_search ( \ + weechat_buffer_get (buffer, "category")); \ + struct t_irc_channel *ptr_channel = irc_channel_search ( \ + ptr_server, \ + weechat_buffer_get (buffer, "name")) + + extern void irc_command_init (); #endif /* irc-command.h */ |