psychon
5d9a22f6cc
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
698965777a
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
c9f26ba05f
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
333dd00867
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
9f742b352d
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
b0128cf130
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
415754dd16
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
c5dbfaf4fa
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
5e940438f9
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
c27713cc1d
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
2cfd6f9b46
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
fa6b595e06
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
3d5c56c7a7
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
8e5960983b
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
f72e2f8abd
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
e4f907dc42
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
aff85c2244
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
aadde9b48f
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
0129916d4b
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
c9b2f4e063
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
7215efe434
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
45caa26d86
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
4ede77ba99
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
a06ae1e7c3
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
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