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.

Irssi: Difference between revisions

From ZNC
Jump to navigation Jump to search
KindOne (talk | contribs)
Include dispatch.pl since irssi does not like '/znc'
Major update regarding server-time's support within irssi.
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Connecting to ZNC ==
=== SSL ===


  /set user_name myusername
  /network add libera-znc
Or to connect to a specific network you have setup add /networkname for instance
/server add -network libera-znc -auto -tls my.bouncer.net 6697 username/libera:password
  /set user_name myusername/freenode
  /save
/connect libera-znc


Now connect and supply the password
=== Non SSL ===
/connect znc.example.com 1234 password


It doesn't matter what you put for nickname as the server will readjust to what the network is set to.
/network add libera-znc
/server add -network libera-znc -auto my.bouncer.net 6667 username/libera:password
/save
/connect libera-znc


Note: irssi does not like "/znc", so you will need [http://scripts.irssi.org/scripts/dispatch.pl dispatch.pl] for it work. (This can be put in ~/.irssi/scripts/autorun)
=== Timestamps ===
 
Server-time has been supported in irssi since 1.3, but by default the variable which controls its display ('''show_server_time''') is '''OFF'''. See [https://irssi.org/documentation/settings/#show-server-time the official documentation].  To enable it:
 
<code>/set show_server_time ON</code>
 
Prior to irssi v1.3, the server-time capability was not supported, so buffer playback may have been ugly, resulting in the need for a script; see [[Timestamps#irssi]].''
 
<!-- Credit goes to kryten in #znc for pointing this out -->
 
== Notes ==
 
Irssi does not send unknown commands to irc server or znc so you will get an unknown command error when you try to use the <code>/znc</code> alias. If you want <code>/znc</code> to work you need to enter <code>/alias znc msg *status</code>.
 
Or, you can download [http://scripts.irssi.org/scripts/dispatch.pl dispatch.pl] placing the script in <code>~/.irssi/scripts/autorun</code> and typing <code>/script load autorun/dispatch</code>. You will only need to enter the command once as irssi will automatically load the script next time irssi is started.
 
Irssi by default will create new channel windows each time znc reconnects to the irc network. After you join all your channels you can enter <code>/layout save</code> to have irssi reuse channel windows instead of creating new windows.


[[Category:Clients]]
[[Category:Clients]]

Latest revision as of 20:33, 10 November 2022

Connecting to ZNC

SSL

/network add libera-znc
/server add -network libera-znc -auto -tls my.bouncer.net 6697 username/libera:password
/save
/connect libera-znc

Non SSL

/network add libera-znc 
/server add -network libera-znc -auto my.bouncer.net 6667 username/libera:password
/save
/connect libera-znc

Timestamps

Server-time has been supported in irssi since 1.3, but by default the variable which controls its display (show_server_time) is OFF. See the official documentation. To enable it:

/set show_server_time ON

Prior to irssi v1.3, the server-time capability was not supported, so buffer playback may have been ugly, resulting in the need for a script; see Timestamps#irssi.


Notes

Irssi does not send unknown commands to irc server or znc so you will get an unknown command error when you try to use the /znc alias. If you want /znc to work you need to enter /alias znc msg *status.

Or, you can download dispatch.pl placing the script in ~/.irssi/scripts/autorun and typing /script load autorun/dispatch. You will only need to enter the command once as irssi will automatically load the script next time irssi is started.

Irssi by default will create new channel windows each time znc reconnects to the irc network. After you join all your channels you can enter /layout save to have irssi reuse channel windows instead of creating new windows.