| 1 |
1. Connection: |
| 2 |
============== |
| 3 |
|
| 4 |
1.1 How can I automatically load irssi-xmpp at irssi startup ? |
| 5 |
|
| 6 |
Simply put "load xmpp" in your startup file (~/.irssi/startup): |
| 7 |
echo "load xmpp" >> ~/.irssi/startup |
| 8 |
|
| 9 |
1.2 How can I automatically connect to my account at irssi startup ? |
| 10 |
|
| 11 |
You can put these things in your config file (The config file can be |
| 12 |
found here : "~/.irssi/config"): |
| 13 |
|
| 14 |
To create a XMPP network, add to chatnets section: |
| 15 |
<network> = { |
| 16 |
type = "XMPP"; |
| 17 |
nick = "<jid>"; |
| 18 |
}; |
| 19 |
|
| 20 |
Then you can add this at the end of the servers section: |
| 21 |
{ |
| 22 |
address = "<address>"; |
| 23 |
port="<port>"; |
| 24 |
use_ssl = "{yes|no}"; |
| 25 |
chatnet = "<network>"; |
| 26 |
password = "<password>"; |
| 27 |
autoconnect = "{yes|no}"; |
| 28 |
}; |
| 29 |
|
| 30 |
Or in irssi, you can type this: |
| 31 |
/SERVER ADD -xmppnet <network> <address> <port> <password> <jid> |
| 32 |
|
| 33 |
If 0 is specified as port, the default port will be used (5222 for a |
| 34 |
regular connection or 5223 for SSL). |
| 35 |
|
| 36 |
Now you can connect to your jabber account by typing: |
| 37 |
/CONNECT <network> |
| 38 |
Or just restart irssi if you have set autoconnect to yes. |
| 39 |
|
| 40 |
1.3 How can I use my gmail/gtalk account ? |
| 41 |
|
| 42 |
You have to use the server "talk.google.com", so the command is: |
| 43 |
/XMPPCONNECT -host talk.google.com <jid> <password> |
| 44 |
|
| 45 |
You don't need to specify the -ssl switch because STARTTLS will be |
| 46 |
used automatically. |
| 47 |
|
| 48 |
2. General: |
| 49 |
=========== |
| 50 |
|
| 51 |
2.1 Why the lagmeter is not working ? |
| 52 |
|
| 53 |
The server need to support the XEP-0199 (XMPP Ping). If it doesn't |
| 54 |
support it, the lagmeter won't work. |
| 55 |
|
| 56 |
If your server support the XMPP Ping, maybe you didn't add the |
| 57 |
composing item in the statusbar. Take a look at the file GENERAL |
| 58 |
(section "Composing in the statusbar:). |
| 59 |
|
| 60 |
2.2 How can I be away on all servers (both IRC servers and XMPP |
| 61 |
servers) ? |
| 62 |
|
| 63 |
Simply use this command: |
| 64 |
/foreach server /away -one <reason> |
| 65 |
|
| 66 |
Or set up an alias like this |
| 67 |
/alias aaway /foreach server /away -one |
| 68 |
|
| 69 |
3. Scripting: |
| 70 |
============= |
| 71 |
|
| 72 |
3.1 How can I use or write scripts with irssi-xmpp ? |
| 73 |
|
| 74 |
... |
| 75 |
|
| 76 |
3.2 My script seems to be incompatible with irssi-xmpp and throws warnings |
| 77 |
such as: Can't locate object method "xxx" via package "Irssi::Xmpp::Server". |
| 78 |
How can I get rid of that ? |
| 79 |
|
| 80 |
Basically, it's because the script is IRC-specific and won't work with |
| 81 |
an XMPP server. Try to add a condition in the functions of your script |
| 82 |
to verify if the server is an IRC server and simply return if it is |
| 83 |
not. |
| 84 |
|
| 85 |
4. Themes: |
| 86 |
========== |
| 87 |
|
| 88 |
4.1 How can I change the theme of the messages of irssi-xmpp ? |
| 89 |
|
| 90 |
In the same way you can change the theme of the messages of irssi. |
| 91 |
Take a look at the source file src/fe-common/module-formats.c to see |
| 92 |
the whole list of irssi-xmpp messages. |