plugins: Implemented get_info("password") and re-added get_info("nickserv") as an alias to that.
This commit is contained in:
parent
3285934703
commit
59b9ee3417
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user