Commit Graph

1795 Commits

Author SHA1 Message Date
psychon cbca0d7dc0 Add "Listen4" config option
"Listen6" and "Listen4" now do what the name implies and "Listen" listens on
both ipv4 and ipv6 (unless a bind host was set which forces something
different).

This also changes webadmin appropriately.

Thanks to DarthGandalf for the idea and the patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1816 726aef4b-f618-498e-8847-2d620e286838
2010-03-08 17:23:53 +00:00
silverleo 0d42ded787 Added debug output for the listeners IsHostAllowed check.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1815 726aef4b-f618-498e-8847-2d620e286838
2010-03-08 16:51:00 +00:00
psychon 467a5a570e Update to latest Csocket
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1814 726aef4b-f618-498e-8847-2d620e286838
2010-03-07 15:46:36 +00:00
psychon ec08e22ed7 Use a better seed for srand()
Instead of just time() (which can be easily guessed by an attacker when he gets
a couple of samples of rand() results), this now also uses the current
microseconds, znc's pid and the old PRNG state for computing a seed.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1813 726aef4b-f618-498e-8847-2d620e286838
2010-03-07 14:55:20 +00:00
psychon ab6bb12baa Add basic support for CAP
This adds support for the general CAP protocol and the multi-prefix and
userhost-in-names (NAMESX and UHNAMES) to znc. There is no module call for CAP
tokens yet, but if modules really want to "catch" capabilities, we should most
likely add one.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1812 726aef4b-f618-498e-8847-2d620e286838
2010-03-07 13:44:56 +00:00
psychon 3165e5f42e route_replies: Send 353 through ForwardRaw353()
Before, route_replies bypassed this function which caused "wrong" replies to
/names, because clients who didnt understand it still got NAMESX and UHNAMES
replies.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1811 726aef4b-f618-498e-8847-2d620e286838
2010-03-07 13:24:14 +00:00
psychon 9ac3d94e64 Split up CIRCSock::ForwardRaw353() into two function, one which is per-client
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1810 726aef4b-f618-498e-8847-2d620e286838
2010-03-07 13:16:17 +00:00
psychon 835df7e84e saslauth: Error out "better" on invalid module arguments
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1809 726aef4b-f618-498e-8847-2d620e286838
2010-03-07 13:12:41 +00:00
psychon edd09a5f37 Use CString::Split() in more places
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1808 726aef4b-f618-498e-8847-2d620e286838
2010-03-07 11:08:26 +00:00
psychon 6796cabbaf Optimize our ISUPPORT token parsing
CString::Split() is nice and beautiful and way better than what we did before.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1807 726aef4b-f618-498e-8847-2d620e286838
2010-03-06 15:34:48 +00:00
psychon 3526b740b3 Move the list of sessions to a more "public" place
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1806 726aef4b-f618-498e-8847-2d620e286838
2010-03-04 14:10:45 +00:00
psychon a793d1e758 notes: Remove an unused member variable
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1805 726aef4b-f618-498e-8847-2d620e286838
2010-03-04 14:04:34 +00:00
psychon e49685fb01 Use a random string instead of an md5 hash for session IDs
This string has the same length as the md5 hash, but it does actually contain
more entropy. Also, why md5? :/


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1804 726aef4b-f618-498e-8847-2d620e286838
2010-03-04 14:03:27 +00:00
psychon d4d3c02dd0 Add new module calls for writing config entries
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1803 726aef4b-f618-498e-8847-2d620e286838
2010-03-04 13:20:44 +00:00
prozacx f17798faa9 Removed some debug comments and a debug print
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1802 726aef4b-f618-498e-8847-2d620e286838
2010-03-03 01:47:26 +00:00
prozacx 6cf9b45310 Don't show form for logged in users
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1801 726aef4b-f618-498e-8847-2d620e286838
2010-03-01 02:06:25 +00:00
prozacx 1c8056e4c0 Removed unused member
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1800 726aef4b-f618-498e-8847-2d620e286838
2010-03-01 01:25:20 +00:00
prozacx 78c1399992 Added support for cookies and sessions. Logging in is now done via cookies.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1799 726aef4b-f618-498e-8847-2d620e286838
2010-03-01 01:22:02 +00:00
prozacx b287385500 CString::Split() - Trim() value before pushing it to vsRet if bTrimWhiteSpace is true
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1798 726aef4b-f618-498e-8847-2d620e286838
2010-03-01 00:21:17 +00:00
prozacx 750c2c5780 Separated a bunch of the individual components out of BaseHeader.tmpl into their own include files
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1797 726aef4b-f618-498e-8847-2d620e286838
2010-02-28 22:08:17 +00:00
prozacx f8924e9d09 Don't display the modname twice in breadcrumbs
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1796 726aef4b-f618-498e-8847-2d620e286838
2010-02-28 21:34:05 +00:00
psychon ceb65b2205 Add our copyright header to WebModules.cpp
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1795 726aef4b-f618-498e-8847-2d620e286838
2010-02-25 12:30:14 +00:00
psychon a0a63d5bc4 Remove --disable-modules
ZNC without modules is like rain without being inside,
you really don't want that!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1794 726aef4b-f618-498e-8847-2d620e286838
2010-02-25 12:29:40 +00:00
prozacx c3e4970811 Added a bunch of admin checks
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1793 726aef4b-f618-498e-8847-2d620e286838
2010-02-24 06:31:58 +00:00
prozacx 6a07b44dcb Added F_ADMIN flag to CWebSubPage to require admin privs on a page-by-page basis
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1792 726aef4b-f618-498e-8847-2d620e286838
2010-02-24 06:28:39 +00:00
prozacx 587fe3f99f Changed favicon.ico colors to reflect the color of their skin
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1791 726aef4b-f618-498e-8847-2d620e286838
2010-02-24 05:36:32 +00:00
prozacx f3481cf587 The link to add channels was hidden if no channels already existed
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1790 726aef4b-f618-498e-8847-2d620e286838
2010-02-24 04:57:55 +00:00
prozacx 289acab502 Removed a cerr used in debugging
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1789 726aef4b-f618-498e-8847-2d620e286838
2010-02-24 04:35:59 +00:00
silverleo 0c76105974 Fix input checkbox widths, which rendered badly on some browsers.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1788 726aef4b-f618-498e-8847-2d620e286838
2010-02-23 19:52:00 +00:00
prozacx 28b010f7b9 Renamed GetWebNavTitle() to GetWebMenuTitle() to keep in line with the name of the Menu.tmpl file
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1787 726aef4b-f618-498e-8847-2d620e286838
2010-02-23 06:09:21 +00:00
psychon dfb9c1fae2 blockuser: Make user name comparison case-sensitive
Because user names in znc *are* case sensitive.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1786 726aef4b-f618-498e-8847-2d620e286838
2010-02-22 18:44:54 +00:00
prozacx 2b82686f24 Fixed which skin name gets checked when you're editing a user other than yourself
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1785 726aef4b-f618-498e-8847-2d620e286838
2010-02-22 16:59:04 +00:00
prozacx c09dca3b8e Initial commit of webmods - still lots of work to be done
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1784 726aef4b-f618-498e-8847-2d620e286838
2010-02-22 07:40:22 +00:00
psychon 7331fe3fd2 Remove a useless constructor call
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1783 726aef4b-f618-498e-8847-2d620e286838
2010-02-21 08:24:03 +00:00
psychon e4981c2449 Fix --disable-tcl
Thanks to Efreak for finding this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1782 726aef4b-f618-498e-8847-2d620e286838
2010-02-21 08:14:40 +00:00
prozacx 11d3b6579d Don't quote url or html escaped strings (edited two non-used macros)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1781 726aef4b-f618-498e-8847-2d620e286838
2010-02-21 04:17:27 +00:00
prozacx 20a1794c16 Split the Token() change to an overloaded function
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1780 726aef4b-f618-498e-8847-2d620e286838
2010-02-21 01:35:54 +00:00
prozacx 2f9e005115 Readding Token() code which does get called a lot but also fixes a webadmin bug where the darkcloud skin doesn't highlite the current page's nav item
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1779 726aef4b-f618-498e-8847-2d620e286838
2010-02-20 18:54:52 +00:00
psychon 8d8cb1a8d2 autoattach: Attach on channel actions
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1778 726aef4b-f618-498e-8847-2d620e286838
2010-02-19 17:11:56 +00:00
psychon d2931d289a Another patch by DarthGandalf, thanks
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1777 726aef4b-f618-498e-8847-2d620e286838
2010-02-19 17:06:42 +00:00
psychon 20e8465b60 Fix a bunch of style suggestions from cppcheck[1]
Thanks to DarthGandalf for this patch. You must be bored. :P

[1] cppcheck.sf.net


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1776 726aef4b-f618-498e-8847-2d620e286838
2010-02-19 16:21:07 +00:00
psychon c095da5602 Remove a spurious semicolon
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1775 726aef4b-f618-498e-8847-2d620e286838
2010-02-19 10:21:33 +00:00
psychon ff54899588 Generate stronger certificates in --makepem
Idea and patch by Reed Loden on the bug tracker, thanks a lot.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1774 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 20:41:56 +00:00
psychon 4825bb6d8e Revert r1765
This breaks traffic stats. Thanks to flakes for noticing.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1773 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 17:07:50 +00:00
cflakes 122ef38fb0 Added a missing error message to UpdateMod plus cleaned up two more lines of /znc help.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1772 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 14:15:39 +00:00
cflakes 7b34f1e4b7 Cleanup for "/znc help".
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1771 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 14:03:07 +00:00
cflakes 46ec498837 Added an optional [User] argument to /znc ListChans for admin users.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1770 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 13:50:48 +00:00
cflakes 1609e45c78 Added a "number of channels" column to the LISTUSERS output. The number also includes disabled channels.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1769 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 13:42:32 +00:00
cflakes e3dd59500b Increase the version number to 0.089. This forces psychon to release the next version as 0.090 and from there on we can go to 1.0 or 2.0.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1768 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 13:25:35 +00:00
psychon 7340af82eb Fix all overloaded Csock::ReadData() functions
CSocket changes the prototype, we follow.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1767 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 13:16:44 +00:00