plugins: Implemented get_info("password") and re-added get_info("nickserv") as an alias to that.

This commit is contained in:
Arnavion 2013-06-23 11:36:13 -07:00
parent 3285934703
commit 59b9ee3417

View File

@ -1111,6 +1111,12 @@ hexchat_get_info (hexchat_plugin *ph, const char *id)
case 0x339763: /* nick */ case 0x339763: /* nick */
return sess->server->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 */ case 0xca022f43: /* server */
if (!sess->server->connected) if (!sess->server->connected)
return NULL; return NULL;