diff options
Diffstat (limited to 'src/plugins/scripts')
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua.c | 4 | ||||
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl.c | 1 | ||||
-rw-r--r-- | src/plugins/scripts/python/weechat-python.c | 6 | ||||
-rw-r--r-- | src/plugins/scripts/ruby/weechat-ruby.c | 2 |
4 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c index 6526507ec..01d28a898 100644 --- a/src/plugins/scripts/lua/weechat-lua.c +++ b/src/plugins/scripts/lua/weechat-lua.c @@ -1731,6 +1731,10 @@ weechat_lua_get_server_info (lua_State *L) lua_pushstring (lua_current_interpreter, "nick_modes"); lua_pushstring (lua_current_interpreter, ptr_server->nick_modes); lua_rawset (lua_current_interpreter, -3); + + lua_pushstring (lua_current_interpreter, "prefix"); + lua_pushstring (lua_current_interpreter, ptr_server->prefix); + lua_rawset (lua_current_interpreter, -3); lua_pushstring (lua_current_interpreter, "away_time"); lua_pushstring (lua_current_interpreter, timebuffer); diff --git a/src/plugins/scripts/perl/weechat-perl.c b/src/plugins/scripts/perl/weechat-perl.c index 66418273f..3015de34f 100644 --- a/src/plugins/scripts/perl/weechat-perl.c +++ b/src/plugins/scripts/perl/weechat-perl.c @@ -1483,6 +1483,7 @@ static XS (XS_weechat_get_server_info) hv_store (server_hash_member, "ssl_connected", 13, newSViv (ptr_server->ssl_connected), 0); hv_store (server_hash_member, "nick", 4, newSVpv (ptr_server->nick, 0), 0); hv_store (server_hash_member, "nick_modes", 10, newSVpv (ptr_server->nick_modes, 0), 0); + hv_store (server_hash_member, "prefix", 6, newSVpv (ptr_server->prefix, 0), 0); hv_store (server_hash_member, "away_time", 9, newSVpv (timebuffer, 0), 0); hv_store (server_hash_member, "lag", 3, newSViv (ptr_server->lag), 0); diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c index ca73eafb4..ff0e69485 100644 --- a/src/plugins/scripts/python/weechat-python.c +++ b/src/plugins/scripts/python/weechat-python.c @@ -1612,6 +1612,12 @@ weechat_python_get_server_info (PyObject *self, PyObject *args) PyDict_SetItem(server_hash_member, key, value); Py_DECREF (key); Py_DECREF (value); + + key = Py_BuildValue("s", "prefix"); + value = Py_BuildValue("s", ptr_server->prefix); + PyDict_SetItem(server_hash_member, key, value); + Py_DECREF (key); + Py_DECREF (value); key = Py_BuildValue("s", "away_time"); value = Py_BuildValue("s", timebuffer); diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c index acd35fc3e..233ac0091 100644 --- a/src/plugins/scripts/ruby/weechat-ruby.c +++ b/src/plugins/scripts/ruby/weechat-ruby.c @@ -1707,6 +1707,8 @@ weechat_ruby_get_server_info (VALUE class) rb_str_new2(ptr_server->nick)); rb_hash_aset (server_hash_member, rb_str_new2("nick_modes"), rb_str_new2(ptr_server->nick_modes)); + rb_hash_aset (server_hash_member, rb_str_new2("prefix"), + rb_str_new2(ptr_server->prefix)); rb_hash_aset (server_hash_member, rb_str_new2("away_time"), rb_str_new2(timebuffer)); rb_hash_aset (server_hash_member, rb_str_new2("lag"), |