weechat-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-cvs] weechat/src/plugins weechat-plugin.h plugins-in...


From: FlashCode
Subject: [Weechat-cvs] weechat/src/plugins weechat-plugin.h plugins-in...
Date: Sat, 10 Jun 2006 18:07:57 +0000

CVSROOT:        /sources/weechat
Module name:    weechat
Changes by:     FlashCode <flashcode>   06/06/10 18:07:57

Modified files:
        src/plugins    : weechat-plugin.h plugins-interface.c 

Log message:
        Added IRC colors list in plugin header, fixed get_info for channel info 
(now ok with pv/dcc chat)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/weechat/src/plugins/weechat-plugin.h?cvsroot=weechat&r1=1.21&r2=1.22
http://cvs.savannah.gnu.org/viewcvs/weechat/src/plugins/plugins-interface.c?cvsroot=weechat&r1=1.30&r2=1.31

Patches:
Index: weechat-plugin.h
===================================================================
RCS file: /sources/weechat/weechat/src/plugins/weechat-plugin.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- weechat-plugin.h    8 Apr 2006 21:03:31 -0000       1.21
+++ weechat-plugin.h    10 Jun 2006 18:07:57 -0000      1.22
@@ -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

Index: plugins-interface.c
===================================================================
RCS file: /sources/weechat/weechat/src/plugins/plugins-interface.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- plugins-interface.c 4 Jun 2006 12:57:02 -0000       1.30
+++ plugins-interface.c 10 Jun 2006 18:07:57 -0000      1.31
@@ -482,7 +482,8 @@
     }
     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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]