diff options
author | Arnavion <arnavion@gmail.com> | 2013-06-23 11:36:13 -0700 |
---|---|---|
committer | Arnavion <arnavion@gmail.com> | 2013-06-23 11:39:12 -0700 |
commit | 59b9ee34170998979e4917f5647f685aa0ba74c3 (patch) | |
tree | 160bfcac61cef64ed546eea683ca4e26075a38ac /src | |
parent | 328593470379cfe1bade308145dc26b703d97586 (diff) |
plugins: Implemented get_info("password") and re-added get_info("nickserv") as an alias to that.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/plugin.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |