mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
Added IRC colors list in plugin header, fixed get_info for channel info (now ok with pv/dcc chat)
This commit is contained in:
@@ -482,7 +482,8 @@ weechat_plugin_get_info (t_weechat_plugin *plugin, char *info, char *server)
|
||||
}
|
||||
else if (ascii_strcasecmp (info, "channel") == 0)
|
||||
{
|
||||
if (BUFFER_IS_CHANNEL(gui_current_window->buffer))
|
||||
if (BUFFER_IS_CHANNEL(gui_current_window->buffer)
|
||||
|| BUFFER_IS_PRIVATE(gui_current_window->buffer))
|
||||
return strdup (CHANNEL(gui_current_window->buffer)->name);
|
||||
}
|
||||
else if (ascii_strcasecmp (info, "server") == 0)
|
||||
|
||||
@@ -36,6 +36,23 @@
|
||||
| PLUGIN_RC_OK_IGNORE_PLUGINS)
|
||||
/* ignore WeeChat and other plugins */
|
||||
|
||||
#define WEECHAT_IRC_COLOR_WHITE 0
|
||||
#define WEECHAT_IRC_COLOR_BLACK 1
|
||||
#define WEECHAT_IRC_COLOR_BLUE 2
|
||||
#define WEECHAT_IRC_COLOR_GREEN 3
|
||||
#define WEECHAT_IRC_COLOR_LIGHTRED 4
|
||||
#define WEECHAT_IRC_COLOR_RED 5
|
||||
#define WEECHAT_IRC_COLOR_MAGENTA 6
|
||||
#define WEECHAT_IRC_COLOR_BROWN 7
|
||||
#define WEECHAT_IRC_COLOR_YELLOW 8
|
||||
#define WEECHAT_IRC_COLOR_LIGHTGREEN 9
|
||||
#define WEECHAT_IRC_COLOR_CYAN 10
|
||||
#define WEECHAT_IRC_COLOR_LIGHTCYAN 11
|
||||
#define WEECHAT_IRC_COLOR_LIGHTBLUE 12
|
||||
#define WEECHAT_IRC_COLOR_LIGHTMAGENTA 13
|
||||
#define WEECHAT_IRC_COLOR_GRAY 14
|
||||
#define WEECHAT_IRC_COLOR_LIGHTGRAY 15
|
||||
|
||||
typedef struct t_plugin_dcc_info t_plugin_dcc_info;
|
||||
|
||||
struct t_plugin_dcc_info
|
||||
|
||||
@@ -482,7 +482,8 @@ weechat_plugin_get_info (t_weechat_plugin *plugin, char *info, char *server)
|
||||
}
|
||||
else if (ascii_strcasecmp (info, "channel") == 0)
|
||||
{
|
||||
if (BUFFER_IS_CHANNEL(gui_current_window->buffer))
|
||||
if (BUFFER_IS_CHANNEL(gui_current_window->buffer)
|
||||
|| BUFFER_IS_PRIVATE(gui_current_window->buffer))
|
||||
return strdup (CHANNEL(gui_current_window->buffer)->name);
|
||||
}
|
||||
else if (ascii_strcasecmp (info, "server") == 0)
|
||||
|
||||
@@ -36,6 +36,23 @@
|
||||
| PLUGIN_RC_OK_IGNORE_PLUGINS)
|
||||
/* ignore WeeChat and other plugins */
|
||||
|
||||
#define WEECHAT_IRC_COLOR_WHITE 0
|
||||
#define WEECHAT_IRC_COLOR_BLACK 1
|
||||
#define WEECHAT_IRC_COLOR_BLUE 2
|
||||
#define WEECHAT_IRC_COLOR_GREEN 3
|
||||
#define WEECHAT_IRC_COLOR_LIGHTRED 4
|
||||
#define WEECHAT_IRC_COLOR_RED 5
|
||||
#define WEECHAT_IRC_COLOR_MAGENTA 6
|
||||
#define WEECHAT_IRC_COLOR_BROWN 7
|
||||
#define WEECHAT_IRC_COLOR_YELLOW 8
|
||||
#define WEECHAT_IRC_COLOR_LIGHTGREEN 9
|
||||
#define WEECHAT_IRC_COLOR_CYAN 10
|
||||
#define WEECHAT_IRC_COLOR_LIGHTCYAN 11
|
||||
#define WEECHAT_IRC_COLOR_LIGHTBLUE 12
|
||||
#define WEECHAT_IRC_COLOR_LIGHTMAGENTA 13
|
||||
#define WEECHAT_IRC_COLOR_GRAY 14
|
||||
#define WEECHAT_IRC_COLOR_LIGHTGRAY 15
|
||||
|
||||
typedef struct t_plugin_dcc_info t_plugin_dcc_info;
|
||||
|
||||
struct t_plugin_dcc_info
|
||||
|
||||
Reference in New Issue
Block a user