Commit Graph

4514 Commits

Author SHA1 Message Date
prozacx
ad92c58c42 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
e88958b95a 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
e8dc3de47a 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
5679949dd8 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
40aa7b09fe 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
eb40b3de77 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
472bc6f5c7 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
115b170890 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
1d88f564dc 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
e36d8ae576 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
3bbe5e7a52 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
f0d125a3a3 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
c144870459 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
3b8671d0d1 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
94c1569d4e 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
007503dba9 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
b6e07d9327 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
ec828fd081 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
psychon
f5ede26cea Update to latest Csocket
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1766 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 13:04:11 +00:00
psychon
b7450b0b21 Remove CModule::m_bGlobal
This one is partly due to cppcheck, too, because it warned that one of CModule's
constructors didn't initialize m_bGlobal.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1765 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 12:51:59 +00:00
psychon
7999cacf1c Avoid a CString copy in CFile::FType()
You guessed right, cppcheck ftw!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1764 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 12:49:24 +00:00
psychon
1404a28ffa Make CSmartPtr::operator == const
Yet Another cppcheck warning.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1763 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 12:44:52 +00:00
psychon
17fdbf35bb Fix a small memory leak in webadmin
If the two passwords entered didn't match, webadmin leaked a CUser instance.
This was found by cppcheck, too.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1762 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 12:42:49 +00:00
psychon
291ad47907 Use empty() instead of size() == 0 where appropriate
This was found by cppcheck (cppcheck.sf.net).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1761 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 12:39:41 +00:00
psychon
57fe412a35 Don't let a ZNC user connect to itself
If you let your ZNC user to itself, you generate a loop. ZNC will send the
"Welcome to ZNC message" to the connected client, which is itself. So it
receives that messages and sends it to its client again, which...

We detect this situation because we see raw 001 two times, which should never
happen on a normal IRC server. To get even less than zero ;) false positive, we
only disconnect if the second raw 001 is from a server called "irc.znc.in".


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1760 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 12:13:22 +00:00
psychon
b5bd0f1c9b Remove unused argument to CChan::RemMode()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1759 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 12:10:13 +00:00
psychon
0d85b13785 Handle more messages in partyline
partyline channels now also know about notices, /me and ctcp.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1758 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 12:09:23 +00:00
psychon
f86458fe5d 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
4a38a76e0c 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
ed378aab62 Increase the version number to 0.080
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1754 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 11:49:00 +00:00
imaginos
94479f3977 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
d6b2c4119b <---- 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
558e277968 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
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