Commit Graph

1736 Commits

Author SHA1 Message Date
psychon 58da8b6a25 Add 'static' to some CModule members
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1757 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 12:07:49 +00:00
psychon d6cb42a5d1 Increase the version number to 0.081
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1756 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 11:51:05 +00:00
psychon 33b526e8d8 Increase the version number to 0.080
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1754 726aef4b-f618-498e-8847-2d620e286838
znc-0.080
2010-02-18 11:49:00 +00:00
imaginos 07e7d26587 commiting the commit i should have comitted prior to the previous commit. (accidently turned the const L into a 0), also allow for missing openssl version
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1753 726aef4b-f618-498e-8847-2d620e286838
2010-02-12 23:29:15 +00:00
imaginos cab095af2f <---- i'm with stupid
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1752 726aef4b-f618-498e-8847-2d620e286838
2010-02-12 23:06:19 +00:00
imaginos 50deed2394 keep supporting older versions of openssl
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1751 726aef4b-f618-498e-8847-2d620e286838
2010-02-12 22:59:04 +00:00
imaginos ad1b7421da added workaround for v23 undefined const function before handshake is finished type bug thing
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1750 726aef4b-f618-498e-8847-2d620e286838
2010-02-10 23:33:22 +00:00
cflakes 660c0b6285 Reloadmod command: Moved check for empty module name argument to a place where it actually works.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1749 726aef4b-f618-498e-8847-2d620e286838
2010-02-08 22:55:26 +00:00
psychon c0665b1967 Revert r1738-1742
This broke webadmin, changed CString::Token()'s behavior possibly breaking a lot
of stuff just before a release and added an unused config entry.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1748 726aef4b-f618-498e-8847-2d620e286838
2010-02-08 13:49:44 +00:00
cflakes d31aaa6d2d AppendTimestamp, PreprendTimestamp, DCCVHost and DenySetVHost (also affects DCCVHost) are now also changable via the admin module. Basic patch by psychon!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1747 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 18:21:48 +00:00
cflakes a4604311a2 Removed an unnecessary exclamation mark from the admin module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1746 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 18:02:32 +00:00
cflakes c7c2039948 Added support for changing the "IsAdmin" flag to the admin module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1745 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 18:01:42 +00:00
cflakes 8b80dc72c5 Added support for the MaxJoins and JoinTries variables to the admin module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1744 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 17:52:42 +00:00
cflakes d1b241a981 Added missing IsAdmin checks to the admin module. DenyLoadMod and DenySetVHost are now properly adhered to.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1743 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 17:45:20 +00:00
prozacx 0d14504204 Added global/user level skin settings which will be used by a future commit of webmods
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1742 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 05:06:40 +00:00
prozacx 8fad25705f Fixed a bug introduced in r1740 where template files weren't being found
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1741 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 04:53:06 +00:00
prozacx fd88aca4bd Added ability to set paths to include-only which will not be used for the root file but only the INC'd ones
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1740 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 03:57:55 +00:00
prozacx 9b47133582 Pulled in a change for Token() from other codebase
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1739 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 03:43:13 +00:00
prozacx 191bc0a54f Added some typedefs for containers of strings
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1738 726aef4b-f618-498e-8847-2d620e286838
2010-02-07 03:42:27 +00:00
psychon 13ea2fe2e0 Fix the OnKick() module call
This call works exactly as it did before (well, it no longer creates a
temporary CNick instance), but it's documentation now also describes its current
behavior.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1737 726aef4b-f618-498e-8847-2d620e286838
2010-02-06 14:54:06 +00:00
psychon 09833f5f31 Socket.cpp: Add missing #ifdef _MODULES
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1736 726aef4b-f618-498e-8847-2d620e286838
2010-02-05 16:05:25 +00:00
psychon 05cf80ac01 Update to latest Csocket again
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1735 726aef4b-f618-498e-8847-2d620e286838
2010-02-05 13:13:51 +00:00
prozacx 6625b10109 Added GetPath(), only print headers once, forward declare Cmodule
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1734 726aef4b-f618-498e-8847-2d620e286838
2010-02-05 02:03:17 +00:00
prozacx c0793c6f31 Moved CSocket to Socket.cpp/h
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1733 726aef4b-f618-498e-8847-2d620e286838
2010-02-05 02:01:00 +00:00
psychon 1da97c8805 CUtils::GenerateCert(): Set the issuer name
This hopefully fixes sf.net#2855717.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1732 726aef4b-f618-498e-8847-2d620e286838
2010-02-03 17:37:10 +00:00
psychon 2f10f8ef5c partyline: Send the user list on forced rejoin
When a client tries to part from a channel to which it was fixed, we sent it a
join again to make it rejoin (bad irssi for not waiting for the server's reply
to PART!).

The problem here was that we didn't send the nicklist and thus the channel
appeared empty. This fixes SF.net #2802684.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1731 726aef4b-f618-498e-8847-2d620e286838
2010-02-03 16:47:48 +00:00
psychon 404ad039d5 Call OnChanAction() after OnChanCTCP()
Now these two module hooks are called in the same order as OnPrivAction() and
OnPrivCTCP().

Additionally, one can now properly block channel action's from reaching the
channel buffer via return HALTCORE; in OnChanAction.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1730 726aef4b-f618-498e-8847-2d620e286838
2010-02-03 14:46:57 +00:00
cflakes 98521e14d0 Added a summary line to LISTCHANS output. Suggested by bigpresh, basic patch by Efreak. Thanks!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1729 726aef4b-f618-498e-8847-2d620e286838
2010-02-02 17:36:18 +00:00
psychon 945c411727 Don't request the MOTD if there is none
If a new client logs in and we don't have a MOTD cached, we request it via
/motd. Since the IRC server sends it to use on connect anyway, there is no point
in requesting it if there is none. (And even if there is no MOTD, we should get
a "422 MOTD File is missing" which would be cached, so still no empty MOTD
buffer)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1728 726aef4b-f618-498e-8847-2d620e286838
2010-02-01 19:46:26 +00:00
psychon c3bc382d69 Update to latest Csocket
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1727 726aef4b-f618-498e-8847-2d620e286838
2010-01-28 19:55:23 +00:00
psychon bd89c85e9e CClient::PutIRC(): Use CUser::PutIRC()
This won't save the world, but it won't destroy it either. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1726 726aef4b-f618-498e-8847-2d620e286838
2010-01-28 19:46:06 +00:00
psychon 7dce4dc915 CClient: Use CUser's IRC Socket pointer
CUser already saves the pointer to the IRC socket, so why would CClient's have
to do the same?


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1725 726aef4b-f618-498e-8847-2d620e286838
2010-01-28 19:44:37 +00:00
psychon be8c5cf6f5 Use GetIRCSock() instead of m_pIRCSock directly
This patch makes the code in CClient use a wrapper function for accessing the
IRC socket. Wait and see for why I do this. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1724 726aef4b-f618-498e-8847-2d620e286838
2010-01-28 19:40:38 +00:00
psychon c943babd67 Remove a pointless if
If there is no connection to the IRC server, we can't forward a nick change
anyway, so there is no need to check for this case.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1723 726aef4b-f618-498e-8847-2d620e286838
2010-01-28 19:29:24 +00:00
cflakes 05aad59935 Removed default-checked yet quite useless and annoying "[add ]your current ip" checkbox from webadmin's edit user page. The new default skin never had it, this completely removes it from the other skins and from the module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1722 726aef4b-f618-498e-8847-2d620e286838
2010-01-25 21:54:55 +00:00
cflakes 09b7cbfee0 Use a nice, non-serif font for the "ice" webadmin skin instead of the browser default font (which usually is Times New Roman or something)!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1721 726aef4b-f618-498e-8847-2d620e286838
2010-01-24 17:50:32 +00:00
cflakes 188cde8195 Revamped default webadmin skin. It's very grayish, but looks way more like 2010 than the old default skin does.
The blue favicon.ico has been copied from the other webadmin skins.
Here's a screenshot: http://img402.imageshack.us/img402/2452/zncsettings126435334747.png


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1720 726aef4b-f618-498e-8847-2d620e286838
2010-01-24 17:19:07 +00:00
cflakes 10c51c6c5f Fix[1] HTTP Cache-Control headers for static files served by webadmin.
[1] http://www.mnot.net/cache_docs/#CACHE-CONTROL


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1719 726aef4b-f618-498e-8847-2d620e286838
2010-01-24 16:05:21 +00:00
psychon 125528c9db Add some more doxygen comments
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1718 726aef4b-f618-498e-8847-2d620e286838
2010-01-23 13:01:00 +00:00
cflakes b3f4ade6de Update to the flooddetach module: fixing a compile warning on x86 as reported by SilverLeo. Thanks!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1717 726aef4b-f618-498e-8847-2d620e286838
2010-01-19 20:10:15 +00:00
cflakes 911e778357 Following the bug report at [1] and a short discussion on IRC, this changes webadmin HTML pages' default charset to UTF-8. Since we do not have a routine that detects an input's charset or even converts it to UTF-8, this will cause ISO-8859-1(1) or other non UTF-8 encoded inputs that have been set e.g. as module arguments from IRC or from a non-UTF-8 shell console to show up garbled in webadmin. A possible fix would be to convert strings to UTF-8 before inserting them into the templates. We'll see what the future holds.
[1] http://sourceforge.net/tracker/index.php?func=detail&aid=2933280&group_id=115828&atid=672821


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1716 726aef4b-f618-498e-8847-2d620e286838
2010-01-18 19:52:16 +00:00
psychon 202029d51f Add some doxygen comments
This adds doxygen comments to the most important functions from
CModule and CGlobalModule.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1715 726aef4b-f618-498e-8847-2d620e286838
2010-01-17 12:25:17 +00:00
psychon 6aad406387 Use RTLD_GLOBAL for opening modules
This fixes a bug where perl (loaded from modperl) tried to load some perl module
which tied with a symbol lookup error since perl's symbols were private. This
also adds a rather long comment explaining why we use the RTLD_-flags we do use.

Thanks to tylerdu for finding this, reporting it and testing the fix.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1714 726aef4b-f618-498e-8847-2d620e286838
2010-01-15 22:49:17 +00:00
imaginos 1acbdd5b91 cleanup some, and aggregate common code
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1713 726aef4b-f618-498e-8847-2d620e286838
2010-01-15 20:19:02 +00:00
imaginos baeb2a666e added workaround for a canonical name that points to ipv6 and ipv4 ip's, the ipv6 ip is tried first, followed up by a final try on ipv4 in the event the ipv6 connect results in a network unreachable. I wonder what this will break ...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1712 726aef4b-f618-498e-8847-2d620e286838
2010-01-15 19:45:58 +00:00
cflakes 4aaa804bea Added a Clone() method to CNick:
void Clone(const CNick& SourceNick);

Patch by KiNgMaR, thanks!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1711 726aef4b-f618-498e-8847-2d620e286838
2010-01-14 11:16:48 +00:00
imaginos 443c523d1d cleanup some crosseyed code
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1710 726aef4b-f618-498e-8847-2d620e286838
2010-01-12 20:46:52 +00:00
imaginos 800cb23e2a added workaround for older c-ares version, implemented library init calls per KiNgMaR
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1709 726aef4b-f618-498e-8847-2d620e286838
2010-01-12 20:05:58 +00:00
imaginos c9c773ef66 bring csocket changes up to date with win32 fixes provided by DGandalf, also forgot to implement ares_timeout
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1708 726aef4b-f618-498e-8847-2d620e286838
2010-01-12 18:51:31 +00:00
cflakes 5035ec4a72 Update to latest Csocket. A Thank You goes out to DGandalf for noticing a bug in Csocket's c-ares code and another one of course to Imaginos for promptly looking into and fixing this.
The issue was that a timeout was being applied when c-ares really takes care of timeouts.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1707 726aef4b-f618-498e-8847-2d620e286838
2010-01-12 00:28:24 +00:00