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.

Weechat and Whois: Difference between pages

From ZNC
(Difference between pages)
Jump to navigation Jump to search
>Mkaysi
m add /connect BNC. Asked at #ZNC
 
>Resistance
Noting that the plugin does not work. See talk page for error descriptions.
 
Line 1: Line 1:
== Connecting to ZNC ==
{{External Module}}
=== SSL ===
==== Connecting ====
Connections to ZNC using SSL:


  /server add BNC my.bouncer.net/+6697 -ssl -username=username/network -password=password -autoconnect
'''This module does not work with the latest version of ZNC!  It has compile-time errors which prevent the use of the module!'''
  /set irc.server.BNC.ssl_verify off
  /connect BNC
  /save


==== Troubleshooting ====
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.
It does not connect.


If port 6697 is the SSL port, you need to specify the "+" before the port and "-ssl"
== Installing ==
The code for this module can be found [http://dead.sexypenguins.com/~efreak/znc/whois.cpp here] or [[Whois/code|here]]. Follow the [[Compiling modules]] page to compile it.


This is a failed attempt due to not specifying the "+" and/or "-ssl"
== Configuration ==
  05:46:47    BNC =!= | irc: connection refused
All arguments are optional.
  05:46:47    BNC  -- | irc: reconnecting to server in 10 seconds
{|
  05:46:57    BNC  -- | irc: reconnecting to server...
!Arg
  05:46:57    BNC  -- | irc: connecting to server my.bouncer.net/6697 (SSL)...
!Description
  05:46:58    BNC =!= | irc: connection refused
|-
| -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).
|}


=== Non SSL ===
At this time there is no internal configuration.


This is for plain non-ssl connections.
== Usage ==
As an admin:


   /server add BNC my.bouncer.net/6667 -username=username/network -password=password -autoconnect
/whois ?efreak
   /connect BNC
<pre>Whois   : ?efreak [Efreak@in.bed.with.a.drunkensailor.org]: Self-Proclaimed Narcissistic Godling
  /save 
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</pre>
As a user:


/whois ?efreak
<pre>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</pre>


[[Category:Clients]]
== Contact ==
Contact via [[Special:EmailUser/Efreak|email]], or on irc. Efreak is available in #znc on EFnet and Freenode, and can also be found on the [http://www.recalledtoirc.net/wiki/Special:WebChat RecalledToIRC] and [http://www.mibbit.com 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 [http://en.znc.in/w/index.php?title=Whois/code&oldid=3848 here] instead of the code in the repo or on the code page.

Revision as of 02:44, 17 January 2012

This module does not work with the latest version of ZNC! It has compile-time errors which prevent the use of the module!

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 code for this module can be found here or here. Follow the Compiling modules page to compile it.

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.