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
1 changed files with 6 additions and 0 deletions

View File

@ -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;