Commit Graph

1648 Commits

Author SHA1 Message Date
cflakes
bd1af54f1c Charset module:
- Added some comments
- Fixed some places where iconv_close may have been called two times on the same
handle which apparently crashed some implementations. Woops. Thanks to x-demon
for noticing.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1975 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 20:13:19 +00:00
cflakes
08463bedac Make webadmin show whether a Listener/port accepts IRC and/or HTTP connections.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1974 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 19:08:41 +00:00
silverleo
3b9392a0b3 Fixed modtcl result fetching from the interpreter.
Tcl 8.6 no longer supports accessing the result field directly,
so we now use the public getter.

Thanks to flakes for finding this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1970 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 17:24:02 +00:00
psychon
99f1efc843 Some more fun with tabs
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1966 726aef4b-f618-498e-8847-2d620e286838
2010-05-02 08:36:57 +00:00
cflakes
ca394439ec Removed an unnecessary admin check from the new traffic page.
Sorry for not noticing this earlier :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1959 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 12:07:23 +00:00
cflakes
af0dd16d1d Added a "Traffic Info" page to webadmin. 99% of the patch have been done
by BrianC, so thanks again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1958 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 12:04:44 +00:00
psychon
20c79083de Don't use "ip:port" but "ip port" for display purposes
With ipv6 addresses, ip:port just looks wrong.

Found by KiNgMaR, thanks.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1955 726aef4b-f618-498e-8847-2d620e286838
2010-04-30 10:50:33 +00:00
cflakes
7d7106748e disconkick module: Only send a kick to channels that the client is actually joined to,
avoid massive kick spam when re-connecting repeatedly and rapidly fails.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1952 726aef4b-f618-498e-8847-2d620e286838
2010-04-29 10:31:47 +00:00
cflakes
73c6a32742 Another patch by BrianC, building upon the previous revision,
this uses the new sort feature to sort channel tables in stickychan's
and webadmin's channel tables and webadmin's user table, also the module
names in the menu. Hooray!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1949 726aef4b-f618-498e-8847-2d620e286838
2010-04-28 22:00:26 +00:00
cflakes
dee94a0bb8 Added the necessary checks for (lib)iconv in order to enable
the charset module from extra to do its thing. This has been
a pain in the ass and I'd like to thank psychon who made most
of the autofoo happen and BrianC for finding out that BSD sucks
and for testing! Yay!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1947 726aef4b-f618-498e-8847-2d620e286838
2010-04-27 15:40:24 +00:00
cflakes
136ce32f85 Fixed some weird code in webadmin.cpp that prevented
module arguments from showing up with the new GetParam().


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1944 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 21:58:56 +00:00
cflakes
08d1d248e2 BrianC totally pimped the del_user page.
"Yo ZNC, we heard you like deleting users so we put a delete button in your
delete user page so you can delete while you delete."


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1943 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 21:49:07 +00:00
cflakes
4274bdc5d1 Add the cool charset module to "extra". It normalizes character sets,
so if your client sends e.g. ISO-8859-1, and users on your IRC server
want UTF-8, this module can help you.
Or, the other way around, if users on your IRC server send messages
with weird charsets that your client doesn't understand, this module
can convert them to UTF-8 or something for you (as long as you know
the names of the source charsets, at least).
More explanation will be added to the wiki shortly.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1942 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 21:45:13 +00:00
cflakes
fb8b8e4258 Fixed lastseen template to reflect the new user deletion confirmation page.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1941 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 20:43:23 +00:00
cflakes
50451bec2f Fixed GetParam call in the notes module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1940 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 20:37:24 +00:00
cflakes
e8791a85ec Make del_user page look nicer.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1939 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 20:36:42 +00:00
cflakes
db9a9bfaa9 Adjusted the GetParam calls in webadmin.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1938 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 20:33:03 +00:00
psychon
2e6881c378 Webadmin: Use a dedicated page for confirming user deletes
The old Javascript way didn't work when one had javascript disabled.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1937 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 14:46:45 +00:00
cflakes
298d7f0997 WebMods: Following the last commit, this adds the CSRF check token
to existing action="post" forms. Right now, we don't have much of a
real protection against CSRF yet, but psychon is working on making
that happen :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1933 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 13:35:06 +00:00
psychon
46b70f654d Move the HTTP/IRC switching to CIncomingConnection
This new class waits for the first line from the client and checks if it's an
HTTP request and then passes the connection on to the irc or http code.

Before this, the IRC parser handled this as a special case which wasn't as
nice-looking as this is. :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1925 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 18:20:12 +00:00
psychon
eb44919005 Move CListener and CRealListener into their own files
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1924 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 16:52:30 +00:00
psychon
92cce35f90 Move discon_kick, blockuser and lastseen out of extra/
discon_kick is renamed to disconkick, seems more consistent with the other
modules.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1923 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 15:52:50 +00:00
psychon
a489a3f8ff Move imapauth and email to extra/, remove webchat
webchat will come back later in more shiny and with more blinky-blink!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1922 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 15:36:50 +00:00
cflakes
fcdaa4b308 Remove some superfluous WebRequiresLogin and WebRequiresAdmin implementations from modules. Thanks to psychon for noticing.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1920 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 14:56:44 +00:00
cflakes
3225e8fbdf Move the dangerous shell module to "extra".
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1919 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 14:46:14 +00:00
cflakes
057da383ea Web-enabled the stickychan module. You can now stick+unstick channels from the web.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1918 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 14:10:56 +00:00
cflakes
80724ce64c Do not keep nickserv passwords lingering around as module arguments.
Instead, save them as NV. This also prevents them from showing up in
webadmin.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1914 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 11:20:16 +00:00
cflakes
30d996dae8 WebMods: Finally fixed the default theme. Looks pretty nice now.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1907 726aef4b-f618-498e-8847-2d620e286838
2010-04-13 20:25:44 +00:00
cflakes
7748713afd Added ability to change the TimezoneOffset setting
from the admin module. Patch by BrianC, thanks!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1906 726aef4b-f618-498e-8847-2d620e286838
2010-04-12 15:31:42 +00:00
psychon
48148d6a30 partyline: Fix desync with {add,del}fixchan
Again, thanks to r33d for the patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1904 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 11:43:09 +00:00
psychon
78044a7e06 partyline: Minor fix to loading saved channel topics
Follow up patch to r1898.

Patch again by Reed Loden (r33d), thanks a lot.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1901 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 08:58:15 +00:00
cflakes
f823e8cdde Some more skin fixes. Default's menu is still ugly,
and the Ice skin is as well. Soon.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1900 726aef4b-f618-498e-8847-2d620e286838
2010-04-08 16:42:37 +00:00
psychon
4f2c782c86 partyline: Save channel topics across restarts
This implements some feature request on sf.net.

Patch by Reed Loden (r33d), thanks a lot.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1898 726aef4b-f618-498e-8847-2d620e286838
2010-04-08 15:56:19 +00:00
psychon
16464664e8 Fail less badly if perl isn't found
After this, perl, c-ares and openssl now are handled similar if they aren't
found.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1895 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:55:27 +00:00
psychon
0c64f53bc9 Make query to *raw send the command to IRC instead of to the client
IMHO this makes way more sense. Really, a lot more sense.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1892 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:04:52 +00:00
silverleo
7298f9c2dc Minor fixes to the templates
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1891 726aef4b-f618-498e-8847-2d620e286838
2010-04-06 20:00:21 +00:00
cflakes
36fa066eee Add number of configured channels to lastseen web page output.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1889 726aef4b-f618-498e-8847-2d620e286838
2010-04-05 16:38:32 +00:00
cflakes
50dea12a2e Webadmin now finally displays "failed to load module" messages, thanks to the WebMods framework. Yay!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1887 726aef4b-f618-498e-8847-2d620e286838
2010-04-05 15:18:02 +00:00
cflakes
c2fecba9f7 Some more beauty fixes for dark-clouds. :)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1884 726aef4b-f618-498e-8847-2d620e286838
2010-04-05 14:13:38 +00:00
cflakes
21c30c84d5 Following revision 1880 the lastseen web page should only be visible for admin users.
Thanks to psychon for noticing! :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1881 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 18:35:59 +00:00
cflakes
3a41bc388f WebMod-enabled the lastseen module. Especially useful for setups with many users,
makes finding inactive accounts easy.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1880 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 16:58:47 +00:00
cflakes
9a82f7e3cd Remove obsolete (since now automatic) ESC=HTML flags.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1879 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 16:22:58 +00:00
cflakes
dd67b21597 Re-add lost options, fix some space, adjust some captions.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1875 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 14:11:22 +00:00
cflakes
b5e144b521 "dark-clouds" now looks okish again, still needs some finishing touches applied, but generally fine.
The MOTD textarea will use a monospace font now.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1873 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 13:44:47 +00:00
cflakes
eac271f9d2 Re-add missing IPv4 column for listeners on webadmin's settings page.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1872 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 12:58:14 +00:00
cflakes
51cf28c061 More skin updates on the way from webadmin to webmods. Not yet done.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1871 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 12:42:00 +00:00
cflakes
bd2764b34d WebAdmin: Show global settings previous to user settings.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1870 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 11:56:10 +00:00
cflakes
6c5421b021 Deleted obsolete modules/webadmin dir, copied CSS files for ice & default to
webskins dir, made default the _default_ skin, moved dark-clouds to dark-clouds,
added /skinfiles/ feature to base skins on each other (and not only on default).

Next up: re-adding help texts that got lost during webadmin->webmods transition,
making skins look nice again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1868 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 10:27:33 +00:00
cflakes
8575a6eae4 Add missing DenyLoadMod check in admin.cpp, following
up revision 1845. Patch by Nirjen, thanks again!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1864 726aef4b-f618-498e-8847-2d620e286838
2010-03-31 21:41:30 +00:00
cflakes
555be2b724 "Fix" trailing whitespace in /settings' textareas.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1856 726aef4b-f618-498e-8847-2d620e286838
2010-03-30 10:17:56 +00:00