From 59b9ee34170998979e4917f5647f685aa0ba74c3 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sun, 23 Jun 2013 11:36:13 -0700 Subject: plugins: Implemented get_info("password") and re-added get_info("nickserv") as an alias to that. --- src/common/plugin.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/common/plugin.c b/src/common/plugin.c index 8a704e5f..5a6a42a6 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -1111,6 +1111,12 @@ hexchat_get_info (hexchat_plugin *ph, const char *id) case 0x339763: /* nick */ return sess->server->nick; + case 0x4889ba9b: /* password */ + case 0x438fdf9: /* nickserv */ + if (sess->server->network) + return ((ircnet *)sess->server->network)->pass; + return NULL; + case 0xca022f43: /* server */ if (!sess->server->connected) return NULL; -- cgit 1.4.1