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.

Using commands

From ZNC
Revision as of 18:47, 17 December 2011 by DarthGandalf (talk | contribs) (Created page with "{{Languages}} === Commands === Commands are given to ZNC by messaging the virtual user *status. Likewise, modules are communicated to by messaging *modname as well. Alt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Commands

Commands are given to ZNC by messaging the virtual user *status. Likewise, modules are communicated to by messaging *modname as well.

Alternatively you can use /znc command instead of /msg *status command and /znc *module command instead of /msg *module command

Example: /msg *status listmods

<prozac> listmods
<*status> +---------+------------------------------------------------------+
<*status> | Name    | Description                                          |
<*status> +---------+------------------------------------------------------+
<*status> | email   | Monitors Email activity on local disk /var/mail/user |
<*status> | shell   | Gives shell access.                                  |
<*status> | schat   | Secure cross platform (:P) chat system               |
<*status> +---------+------------------------------------------------------+

The prefix for these virtual users can be changed from * in the znc.conf file. It is wise to use a character that is illegal to use on IRC so that you don't lose the ability to talk to a real person who happens to be using the same prefix on their IRC nick.

Command List

<zncuser> help
<*status> +------------------------+-------------------------+---------------------------------------------+
<*status> | Command                | Arguments               | Description                                 |
<*status> +------------------------+-------------------------+---------------------------------------------+
<*status> | Version                |                         | Prints which version of znc this is         |
<*status> | ListDCCs               |                         | List all active DCCs                        |
<*status> | ListMods               |                         | List all loaded modules                     |
<*status> | ListAvailMods          |                         | List all available modules                  |
<*status> | ListChans              |                         | List all channels                           |
<*status> | ListNicks              | <#chan>                 | List all nicks on a channel                 |
<*status> | ListServers            |                         | List all servers                            |
<*status> | AddServer              | <host> [[+]port] [pass] | Add a server to the list                    |
<*status> | RemServer              | <host>                  | Remove a server from the list               |
<*status> | Enablechan             | <#chan>                 | Enable the channel                          |
<*status> | Detach                 | <#chan>                 | Detach from the channel                     |
<*status> | Topics                 |                         | Show topics in all channels                 |
<*status> | PlayBuffer             | <#chan>                 | Play back the buffer for a given channel    |
<*status> | ClearBuffer            | <#chan>                 | Clear the buffer for a given channel        |
<*status> | ClearAllChannelBuffers |                         | Clear the channel buffers                   |
<*status> | SetBuffer              | <#chan> [linecount]     | Set the buffer count for a channel          |
<*status> | SetVHost               | <vhost (ip preferred)>  | Set the VHost for this connection           |
<*status> | ClearVHost             |                         | Clear the VHost for this connection         |
<*status> | Jump                   |                         | Jump to the next server in the list         |
<*status> | Disconnect             |                         | Disconnect from IRC                         |
<*status> | Connect                |                         | Reconnect to IRC                            |
<*status> | Send                   | <nick> <file>           | Send a shell file to a nick on IRC          |
<*status> | Get                    | <file>                  | Send a shell file to yourself               |
<*status> | LoadMod                | <module>                | Load a module                               |
<*status> | UnloadMod              | <module>                | Unload a module                             |
<*status> | ReloadMod              | <module>                | Reload a module                             |
<*status> | ShowMOTD               |                         | Show the message of the day                 |
<*status> | SetMOTD                | <Message>               | Set the message of the day                  |
<*status> | AddMOTD                | <Message>               | Append <Message> to MOTD                    |
<*status> | ClearMOTD              |                         | Clear the MOTD                              |
<*status> | Rehash                 |                         | Reload znc.conf from disk                   |
<*status> | SaveConfig             |                         | Save the current settings to disk           |
<*status> | ListUsers              |                         | List all users/clients connected to znc     |
<*status> | ListClients            | [User]                  | List all clients connected to your znc user |
<*status> | Traffic                |                         | Show basic traffic stats for all znc users  |
<*status> | Uptime                 |                         | Show how long ZNC is already running        |
<*status> | Broadcast              | [message]               | Broadcast a message to all users            |
<*status> | Shutdown               | [message]               | Shutdown znc completely                     |
<*status> | Restart                | [message]               | Restarts znc                                |
<*status> +------------------------+-------------------------+---------------------------------------------+