summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/ruby
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-02-04 15:25:18 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-02-04 15:25:18 +0000
commit6013e43292bb1a9f8dc40d3c0b8611151d606145 (patch)
tree9d24e86f959d9feccba7ee7dcd2610de27592b3f /src/plugins/scripts/ruby
parent9150cff430c5fe794e0429b298313e30811ad7ac (diff)
downloadweechat-6013e43292bb1a9f8dc40d3c0b8611151d606145.zip
Minor changes on server/channel/nick info API functions
Diffstat (limited to 'src/plugins/scripts/ruby')
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c
index 60b22141a..275730b8f 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/weechat-ruby.c
@@ -956,7 +956,7 @@ weechat_ruby_get_server_info (VALUE class)
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));
@@ -1074,7 +1074,7 @@ weechat_ruby_get_channel_info (VALUE class, VALUE server)
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 = rb_hash_new ();