imaginos
9f7c0db46d
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
0ff25fc532
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
702faeeed5
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
7bb6c2ad7a
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
82cf73d5c6
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
f5848f5176
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
fe55984467
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
4759c75a2f
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
166f08e671
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
d2881ee9d1
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
ece0218b07
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
faefb1f753
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
b3b2f78408
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
fd9ed4aff1
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
5202e315ee
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
b18e42df55
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
8b7a876625
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
c549df9641
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
7c6e5bb86d
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
4fe56b2472
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
c46616376a
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
2594111e75
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
596fb7aec4
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
c7546c0c05
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
e87f440d1c
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
f99e5190cd
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
b50d944bb9
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
f24b1bb890
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
f06d68a77c
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
cb0cc03e2e
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
286722eda5
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
ceaa6234f0
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
ae29c50eb4
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
0212052cdb
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
44661c2d31
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
278e8e9464
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
5352cb3ded
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
ebbc126b72
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
ca1e8d43c3
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
130805ae95
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
e566a53585
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
f1515361fd
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
5ea1f8cc05
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
25ef34398d
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
cflakes
207478d38b
Update to the makeconf procedure... We now only ask for 9 common modules, instead of for all 20 or 30.
...
This will keep people from loading the sample or saslauth (or away) modules and thereby avoid stupid questions.
Instead of listing and asking for all modules, we only show the most widely used ones plus "And X other (uncommon) modules. You can enable those later.".
To add a module, append its name to the array in CZNC::FilterUncommonModules().
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1706 726aef4b-f618-498e-8847-2d620e286838
2010-01-11 12:49:00 +00:00
silverleo
6b07726e9b
Partly revert r1702 and introduce a new setting ServerThrottle.
...
ServerThrottle determines how long znc waits before it tries to connect to the same server again.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1705 726aef4b-f618-498e-8847-2d620e286838
2010-01-10 18:50:39 +00:00
psychon
1b51f15d47
Switch to Csocket's c-ares code
...
This removes all of znc's c-ares code and instead enables Csocket's built-in
version. That code is newer than ZNC's, but should hopefully work just as good.
Let's wait for the bug reports....
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1704 726aef4b-f618-498e-8847-2d620e286838
2010-01-10 13:20:20 +00:00
psychon
d3a0a62f37
Remove svn:executable from modules/q.cpp
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1703 726aef4b-f618-498e-8847-2d620e286838
2010-01-10 13:15:13 +00:00
silverleo
752f19c96b
Change ConnectDelay to be server specific and not global.
...
This way users that connect to different servers can connect faster.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1702 726aef4b-f618-498e-8847-2d620e286838
2010-01-10 12:32:34 +00:00
cflakes
e9e985e784
Importing the flooddetach module into the extra package. Psychon once wrote it for me.
...
It detaches you from a chan if more than A messages are sent in B seconds, where
A is 5 and B is 2 by default. You can change the numbers via the module's arguments
or from IRC. The module will try to automatically re-attach you when the flood is over.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1701 726aef4b-f618-498e-8847-2d620e286838
2010-01-10 12:04:08 +00:00