summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2013-06-23 11:36:13 -0700
committerArnavion <arnavion@gmail.com>2013-06-23 11:39:12 -0700
commit59b9ee34170998979e4917f5647f685aa0ba74c3 (patch)
tree160bfcac61cef64ed546eea683ca4e26075a38ac /src/common
parent328593470379cfe1bade308145dc26b703d97586 (diff)
plugins: Implemented get_info("password") and re-added get_info("nickserv") as an alias to that.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/plugin.c6
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;