To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.
Whois: Difference between revisions
>Resistance |
>Efreak m update to github |
||
Line 4: | Line 4: | ||
== Installing == | == Installing == | ||
The original version of the code for this module can be found [ | The original version of the code for this module can be found [https://github.com/Efreak/ZNC-Modules github]. It does not work with the latest version of ZNC. | ||
A modified version of the code that works with version 0.202 can be found [https://kor.trekweb.org/znc-modules/whois.cpp here] or [[Whois/code|here]]. It still relies 100% on the original author's code, but has had sections which break upon compile removed. | A modified version of the code that works with version 0.202 can be found [https://kor.trekweb.org/znc-modules/whois.cpp here] or [[Whois/code|here]]. It still relies 100% on the original author's code, but has had sections which break upon compile removed. |
Revision as of 01:09, 12 June 2012
This is an external module. Please note that it may or may not work with the current release (1.9.1). This module is not included in the default ZNC installation, and you will need to manually compile it before you can load this module. Contact the author if you have any questions, but feel free to ask in #znc on Libera.Chat. Someone might be able to help you there. |
This global module catches whois commands sent to the server. If the username begins with a ? (i.e. ?efreak), it shows varying amounts of information, depending on the settings and whether or not you are an admin. This module by default sends numerics, to be compatible with existing scripts that use whois.
Installing
The original version of the code for this module can be found github. It does not work with the latest version of ZNC.
A modified version of the code that works with version 0.202 can be found here or here. It still relies 100% on the original author's code, but has had sections which break upon compile removed.
Follow the Compiling modules page to compile either version.
Configuration
All arguments are optional.
Arg | Description |
---|---|
-reqadmin | Only admins can use whois. returns access denied to the module if set |
-dev | mostly for development. Sends text to PM as well as sending as a standard PM. May do other things in the future. |
-servername=irc.znc.in | Replace irc.znc.in with the hostname of your bouncer. Is used as default vhost in the 312 (rpl_whoisserver) reply (if not set, uses ZNC or irc.znc.in). |
At this time there is no internal configuration.
Usage
As an admin:
/whois ?efreak
Whois : ?efreak [Efreak@in.bed.with.a.drunkensailor.org]: Self-Proclaimed Narcissistic Godling Modes : +Attached +IRCConnected +BounceDCCs -DenyLoadMod +MultiClients +KeepBuffer Server : irc.recalledtoirc.net (efreak is attached to bnc.efreakbnc.net) Ircop : ?efreak is a ZNC Admin Idle : 46 minutes, 32 seconds
As a user:
/whois ?efreak
Whois : ?efreak [Efreak@in.bed.with.a.drunkensailor.org]: Self-Proclaimed Narcissistic Godling Server : bnc.efreakbnc.net (efreak is attached to bnc.efreakbnc.net) Ircop : ?efreak is a ZNC Admin Idle : 47 minutes, 33 seconds
Contact
Contact via email, or on irc. Efreak is available in #znc on EFnet and Freenode, and can also be found on the RecalledToIRC and Mibbit chat networks, among other places.
Development
There are some comments at the very end of the code (if you download from my server). These are mostly ideas and a little bit of code.
ZNC 0.80
The current code takes advantage of functions introduced in ZNC 0.90. If you have ZNC 0.80 or earlier, please use the code here instead of the code in the repo or on the code page.