Commits

jdhore committed b2bdba6

Add m_webirc to "default" loaded extensions in .conf files and
add a WEBIRC auth {} block for it to show how its used so you
don't have to read the source of the extension to figure it out.

Comments (0)

Files changed (3)

 #loadmodule "extensions/m_findforwards.so";
 loadmodule "extensions/m_identify.so";
 loadmodule "extensions/m_mkpasswd.so";
+loadmodule "extensions/m_webirc.so";
 #loadmodule "extensions/m_adminwall.so";
 #loadmodule "extensions/m_oaccept.so";
 #loadmodule "extensions/m_opme.so";
 	class = "opers";
 };
 
+/* Example WEBIRC authblock */
+auth {
+	/* user: webirc@IP.OF.YOUR.WEBIRC . the webirc@ part is required */
+	user = "webirc@192.168.1.1";
+
+	/* password: password the webirc client sends in the WEBIRC command.
+	 * You can use a encrypted password here (see above auth block).
+	 */
+	password = "<password>";
+
+	/* spoof: This is required to keep it what it is currently if you
+	 * want the webirc client to show the users' real host as their
+	 * host on IRC.
+	 */
+	spoof = "webirc.";
+	class = "users";
+};
+
 auth {
 	user = "*@*";
 	class = "users";

doc/reference.conf

  * Find channel forwards                             -- m_findforwards.so
  * /identify support                                 -- m_identify.so
  * /mkpassword support                               -- m_mkpasswd.so
+ * WEBIRC support                                    -- m_webirc.so
  * Send message to all admins network-wide           -- m_adminwall.so
  * /oaccept - add to target's accept list, oper only -- m_oaccept.so
  * /opme - op self in opless channels, admin only    -- m_opme.so
 #loadmodule "extensions/m_findforwards.so";
 loadmodule "extensions/m_identify.so";
 loadmodule "extensions/m_mkpasswd.so";
+loadmodule "extensions/m_webirc.so";
 #loadmodule "extensions/m_adminwall.so";
 #loadmodule "extensions/m_oaccept.so";
 #loadmodule "extensions/m_opme.so";
 	class = "opers";
 };
 
+/* Example WEBIRC authblock */
+auth {
+    /* user: webirc@IP.OF.YOUR.WEBIRC . the webirc@ part is required */
+    user = "webirc@192.168.1.1";
+
+    /* password: password the webirc client sends in the WEBIRC command.
+     * You can use a encrypted password here (see above auth block).
+     */
+    password = "<password>";
+
+    /* spoof: This is required to keep it what it is currently if you
+     * want the webirc client to show the users' real host as their
+     * host on IRC.
+     */
+    spoof = "webirc.";
+    class = "users";
+};
+
 auth {
 	/* redirect: the server and port to redirect a user to.  A user does
 	 * not have to obey the redirection, the ircd just suggests to them

extensions/m_webirc.c

  * auth {
  *   user = "webirc@<cgiirc ip>"; # if identd used, put ident username instead
  *   password = "<password>"; # encryption possible
- *   spoof = "webirc."
+ *   spoof = "webirc.";
  *   class = "users";
  * };
  * Possible flags: