diff --git a/docs/Configuration.html b/docs/Configuration.html new file mode 100644 index 00000000..a0f12c7a --- /dev/null +++ b/docs/Configuration.html @@ -0,0 +1,61 @@ + + + + + + +ZNC - Configuration + + + +[Home] +- +[Project Page] + +
+

+

+ File Locations +

+ +

+ Config File - (~/.znc/znc.conf) +

+ + + + diff --git a/docs/Installation.html b/docs/Installation.html new file mode 100644 index 00000000..444f40f3 --- /dev/null +++ b/docs/Installation.html @@ -0,0 +1,27 @@ + + + + + + +ZNC - Installation + + + +[Home] +- +[Project Page] + +
+

+

    +
  1. Download Tarball +
  2. tar -xzvf znc*.*gz +
  3. cd znc* +
  4. ./configure (use --prefix=/path/to/shell/znc) if you don't want a system wide installation or simply don't have root +
  5. make +
  6. make install +
+ + + diff --git a/docs/ModuleHooks.html b/docs/ModuleHooks.html new file mode 100644 index 00000000..41f2ef3c --- /dev/null +++ b/docs/ModuleHooks.html @@ -0,0 +1,54 @@ + + + + + + +ZNC - Module Hooks + + + +[Home] +- +[Project Page] + +
+

+

+ virtual bool OnLoad(const string& sArgs);
+ virtual bool OnBoot();
+ virtual void OnUserAttached();
+ virtual void OnUserDetached();
+ virtual void OnIRCDisconnected();
+ virtual void OnIRCConnected();
+
+
+ virtual bool OnDCCUserSend(const CNick& RemoteNick, unsigned long uLongIP, unsigned short uPort, const string& sFile, unsigned long uFileSize);
+
+
+ virtual void OnOp(const CNick& OpNick, const CNick& Nick, const CChan& Channel, bool bNoChange);
+ virtual void OnDeop(const CNick& OpNick, const CNick& Nick, const CChan& Channel, bool bNoChange);
+ virtual void OnVoice(const CNick& OpNick, const CNick& Nick, const CChan& Channel, bool bNoChange);
+ virtual void OnDevoice(const CNick& OpNick, const CNick& Nick, const CChan& Channel, bool bNoChange);
+ virtual void OnRawMode(const CNick& OpNick, const CChan& Channel, const string& sModes, const string& sArgs);
+
+
+ virtual bool OnUserRaw(string& sLine);
+ virtual bool OnRaw(string& sLine);
+
+
+ virtual bool OnStatusCommand(const string& sCommand);
+ virtual void OnModCommand(const string& sCommand);
+ virtual void OnModNotice(const string& sMessage);
+ virtual void OnModCTCP(const string& sMessage);
+
+
+ virtual void OnQuit(const CNick& Nick, const string& sMessage, const vector& vChans);
+ virtual void OnNick(const CNick& Nick, const string& sNewNick, const vector& vChans);
+ virtual void OnKick(const CNick& Nick, const string& sOpNick, const CChan& Channel, const string& sMessage);
+ virtual void OnJoin(const CNick& Nick, const CChan& Channel);
+ virtual void OnPart(const CNick& Nick, const CChan& Channel);
+
+ + + diff --git a/docs/UsingCommands.html b/docs/UsingCommands.html new file mode 100644 index 00000000..60a8b3b4 --- /dev/null +++ b/docs/UsingCommands.html @@ -0,0 +1,63 @@ + + + + + + +ZNC - Using Commands + + + +[Home] +- +[Project Page] + +
+

+

+ Commands +

+

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

+

+ 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> | ListDCCs  |                     | List all active DCCs                |
+ <*status> | ListMods  |                     | List all loaded modules             |
+ <*status> | ListChans |                     | List all channels                   |
+ <*status> | ListNicks | <#chan>             | List all nicks on a channel         |
+ <*status> | Topics    |                     | Show topics in all channels         |
+ <*status> | SetBuffer | <#chan> [linecount] | Set the buffer count for a channel  |
+ <*status> | Jump      |                     | Jump to the next server in the list |
+ <*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> +-----------+---------------------+-------------------------------------+
+
+ + + diff --git a/docs/WritingModules.html b/docs/WritingModules.html new file mode 100644 index 00000000..037df4e0 --- /dev/null +++ b/docs/WritingModules.html @@ -0,0 +1,75 @@ + + + + + + +ZNC - Writing Modules + + + +[Home] +- +[Project Page] + +
+

+

+ Overview +

+ +

+ Code +

+
+ #include <main.h>
+ #include <Modules.h>
+
+
+ class CExampleMod : public CModule {
+ public:
+     MODCONSTRUCTOR(CExampleMod) {}
+     virtual ~CExampleMod() {}
+
+
+     virtual void OnModCommand(const string& sCommand) {
+         if (strcasecmp(sCommand.c_str(), "HELP") == 0) {
+             PutModule("I'd like to help, but I am just an example");
+         } else {
+             PutModule("Unknown command, try HELP");
+         }
+     }
+ };
+
+
+ MODULEDEFS(CExampleMod)
+
+

+ Output +

+
+ <zncuser> test
+ <*example> Unknown command, try HELP
+ <zncuser> help
+ <*example> I'd like to help, but I am just an example
+
+ + + diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..f9011441 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,50 @@ + + + + + + +ZNC - Front Page + + + +[Home] +- +[Project Page] + +
+

+

+ ZNC - An advanced IRC bouncer +

+

+ Main Features +

+ +

+ Using ZNC +

+ + + +