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.

Privmsg: Difference between revisions

From ZNC
Jump to navigation Jump to search
Supported Clients: IRCCloud.com
Kylef (talk | contribs)
m Anonymous privmsg target in example
 
(6 intermediate revisions by 6 users not shown)
Line 2: Line 2:
{{External Module}}
{{External Module}}


privmsg is a user module which will send all the private messages you send to all your attached clients. This module is designed to work with znc from git. You can find the source at https://github.com/kylef/znc-contrib/blob/master/privmsg.cpp
privmsg is a user module which will send all the private messages you send to all your attached clients. This module is designed to work with znc from git. You can find the source at https://raw.githubusercontent.com/kylef/znc-contrib/master/privmsg.cpp


== Supported Clients ==
== Supported Clients ==
Line 15: Line 15:
* XChat 2.8.6 with [[Privmsg/XChat|this script]]
* XChat 2.8.6 with [[Privmsg/XChat|this script]]
* mIRC 7.27 with [[Privmsg/mIRC|this script]]
* mIRC 7.27 with [[Privmsg/mIRC|this script]]
* HexChat 2.9.6+ with [https://github.com/TingPing/plugins/blob/master/HexChat/mymsg.py this script]
* [[HexChat]] 2.9.6+ with [https://github.com/TingPing/plugins/blob/master/HexChat/mymsg.lua this script]
* IRCCloud.com
* IRCCloud.com
* [http://www.amazon.com/CounterCultured-Android-IRC-Internet-Chat/dp/B004R1D10Y Android IRC] 2.1.15


If your IRC client is not listed here, you can still try it, maybe it's supported, but just not in the list, or you can try [[privmsg_prefix]] module, which looks uglier, but doesn't depend on your client.
If your IRC client is not listed here, you can still try it, maybe it's supported, but just not in the list, or you can try [[privmsg_prefix]] module, which looks uglier, but doesn't depend on your client.  If you have some clients which support this module and some that do not, consider trying [[privmsg auto]] module.


=== Bugs related to other clients ===
=== Bugs related to other clients ===


* irssi http://bugs.irssi.org/index.php?do=details&task_id=833
* irssi https://github.com/irssi-import/bugs.irssi.org/issues/833


== How this works ==
== How this works ==
Line 28: Line 29:
In this example, my own nick is "kylef":
In this example, my own nick is "kylef":


  :kylef!kylef@amnesia.darkscience.net PRIVMSG Derecho :Hello world!
  :kylef!kylef@amnesia.darkscience.net PRIVMSG doe :Hello world!


Currently, this will display the private message in a query window titled "kylef". The RFC doesn't really define how this should be handled, but to me it makes sense for this message to go in the query window for Derecho, and the sender should be kylef (myself).
Currently, this will display the private message in a query window titled "kylef". The RFC doesn't really define how this should be handled, but to me it makes sense for this message to go in the query window for doe, and the sender should be kylef (myself).


In most IRC servers, you wont receive PRIVMSG's formatted this way. But it would make sense for uses with IRC bouncers where we could send messages we sent to all connected clients.
In most IRC servers, you wont receive PRIVMSG's formatted this way. But it would make sense for uses with IRC bouncers where we could send messages we sent to all connected clients.

Latest revision as of 21:41, 4 May 2021

privmsg is a user module which will send all the private messages you send to all your attached clients. This module is designed to work with znc from git. You can find the source at https://raw.githubusercontent.com/kylef/znc-contrib/master/privmsg.cpp

Supported Clients

Not all clients support receiving private messages from ourself to another query window. The following list is of all clients that are known to work with this module.

If your IRC client is not listed here, you can still try it, maybe it's supported, but just not in the list, or you can try privmsg_prefix module, which looks uglier, but doesn't depend on your client. If you have some clients which support this module and some that do not, consider trying privmsg auto module.

Bugs related to other clients

How this works

In this example, my own nick is "kylef":

:kylef!kylef@amnesia.darkscience.net PRIVMSG doe :Hello world!

Currently, this will display the private message in a query window titled "kylef". The RFC doesn't really define how this should be handled, but to me it makes sense for this message to go in the query window for doe, and the sender should be kylef (myself).

In most IRC servers, you wont receive PRIVMSG's formatted this way. But it would make sense for uses with IRC bouncers where we could send messages we sent to all connected clients.