diff --git a/doc/example.conf b/doc/example.conf index e13575b..7e338ae 100755 --- a/doc/example.conf +++ b/doc/example.conf @@ -30,6 +30,7 @@ loadmodule "extensions/ip_cloaking.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"; @@ -207,6 +208,24 @@ auth { 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 = ""; + + /* 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"; diff --git a/doc/reference.conf b/doc/reference.conf index 335497c..7dbf222 100755 --- a/doc/reference.conf +++ b/doc/reference.conf @@ -65,6 +65,7 @@ * 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 @@ -98,6 +99,7 @@ loadmodule "extensions/ip_cloaking.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"; @@ -376,6 +378,24 @@ auth { 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 = ""; + + /* 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 diff --git a/extensions/m_webirc.c b/extensions/m_webirc.c index 1b92ff0..c46ce1a 100644 --- a/extensions/m_webirc.c +++ b/extensions/m_webirc.c @@ -27,7 +27,7 @@ * auth { * user = "webirc@"; # if identd used, put ident username instead * password = ""; # encryption possible - * spoof = "webirc." + * spoof = "webirc."; * class = "users"; * }; * Possible flags: