1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-22 02:46:38 +02:00

Minor changes on server/channel/nick info API functions

This commit is contained in:
Sebastien Helleu
2006-02-04 15:25:18 +00:00
parent 9150cff430
commit 6013e43292
18 changed files with 280 additions and 258 deletions
+2 -2
View File
@@ -769,7 +769,7 @@ weechat_python_get_server_info (PyObject *self, PyObject *args)
if (!server_info)
return server_hash;
for(ptr_server = server_info; ptr_server; ptr_server = ptr_server->next_info)
for(ptr_server = server_info; ptr_server; ptr_server = ptr_server->next_server)
{
strftime(timebuffer, sizeof(timebuffer), "%F %T",
localtime(&ptr_server->away_time));
@@ -881,7 +881,7 @@ weechat_python_get_channel_info (PyObject *self, PyObject *args)
if (!channel_info)
return channel_hash;
for(ptr_channel = channel_info; ptr_channel; ptr_channel = ptr_channel->next_info)
for(ptr_channel = channel_info; ptr_channel; ptr_channel = ptr_channel->next_channel)
{
channel_hash_member = PyDict_New();