mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-10-28 06:15:38 +00:00
plugins: Implemented get_info("password") and re-added get_info("nickserv") as an alias to that.
This commit is contained in:
1 parent
3285934703
commit
59b9ee3417
1 file changed
+6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user