1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

Changes in IRC plugin to use new API

This commit is contained in:
Sebastien Helleu
2007-12-09 11:47:34 +01:00
parent 30ab415dc0
commit 8b3980f508
17 changed files with 923 additions and 877 deletions
+20
View File
@@ -208,6 +208,26 @@ gui_buffer_valid (struct t_gui_buffer *buffer)
return 0;
}
/*
* gui_buffer_get: get a buffer property
*/
char *
gui_buffer_get (struct t_gui_buffer *buffer, char *property)
{
long number;
char *error;
if (string_strcasecmp (property, "category") == 0)
return buffer->category;
else if (string_strcasecmp (property, "name") == 0)
return buffer->name;
else if (string_strcasecmp (property, "title") == 0)
return buffer->title;
else if (string_strcasecmp (property, "nick") == 0)
return buffer->nick;
}
/*
* gui_buffer_set_category: set category for a buffer
*/