[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xchat_list_str
Hi,
I've got a problem with xchat_list_str
I want to get all server with the function xchat_list_str(ph, list,
"type") and this always return 0.
It's a bug ?
this is my function :
static int serverlist_cb(char *word[], char *word_eol[], void *userdata) {
xchat_list *list;
list = xchat_list_get(ph, "channels");
if(list) {
xchat_print(ph, "--- Channels LIST ------------------\n");
while(xchat_list_next(ph, list)) {
xchat_printf(ph, "%s %s %d", xchat_list_str(ph, list,
"channel"), xchat_list_str(ph, list, "server"), xchat_list_str(ph, list,
"type"));
}
xchat_list_free(ph, list);
}
return XCHAT_EAT_ALL;
}
--
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/