Commit Graph

655 Commits

Author SHA1 Message Date
cflakes f46fc5841d Improved perform module description.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1989 726aef4b-f618-498e-8847-2d620e286838
2010-05-15 22:13:10 +00:00
cflakes 26ea4a6cf8 <psychon> someone should commit the one-liner which makes the CListener created by webadmin always be CListener::ACCEPT_HTTP
<psychon> since that's the old behavior anyway


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1987 726aef4b-f618-498e-8847-2d620e286838
2010-05-14 09:00:46 +00:00
cflakes c3b6216a36 Made the lastseen table look better by applying more grammarz.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1986 726aef4b-f618-498e-8847-2d620e286838
2010-05-14 08:59:19 +00:00
cflakes f95fb31525 Added some debug output to the charset module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1985 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 22:58:32 +00:00
psychon 1fcd6a5dee webadmin: Automatically convert module arguments
This patch makes webadmin automatically open its own listening port if it gets
a port number on the command line. It also handles -noircport etc. Basically, it
handles everything. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1984 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 19:49:52 +00:00
psychon 10d1fa41a9 Move module templates to DATADIR
The file hierarchy standard wants that!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1982 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 16:51:17 +00:00
psychon 5c713f5d2d Notes: Add some missing returns
When deleting a note via /#-<key> or listening the available notes via /#?, the
code somehow managed to add a note.

Also, this fixes checking for empty notes.

Found by tomaw, thanks.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1978 726aef4b-f618-498e-8847-2d620e286838
2010-05-10 18:19:11 +00:00
cflakes e9f8a06476 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 5e58456c84 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 8d432f29a3 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 5631a20499 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 f1285bb52e 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 895f077084 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 94afb82089 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 ee78daedd8 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 65f3478469 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 af15b96fb3 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 7d450509ed 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 adf6dbd75f 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 8ab18c358a 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 ba0a25ce46 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 b7601d3119 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 ccad15f8f9 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 0aacfdf83c 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 0b6a69d1d4 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 da954bb4a6 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 6824e3e269 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 ab849bb922 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 fe7fb71fa1 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 3025196759 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 2993b6ad2e 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 4d51601552 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 b2817cf9bc 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 1cbb6a393d 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 fb8b32e614 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 2896ae6d74 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 4c698aa622 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 1bc56a6748 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 b9576f0ed1 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 da41b236b7 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 ed3c02ce8d 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 8cebad9a42 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 a65637edd4 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 8e15e85919 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 4d5ade7c8f 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 6a51f30039 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 2361421c43 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 ad456c2669 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 1f3816a2e5 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 d338b3d08c 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