Commit Graph

1886 Commits

Author SHA1 Message Date
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 e77adef048 Update to latest Csocket
This gets rid of some openssl-related warnings from valgrind's memcheck and adds
Csock::GetPeerFingerprint().


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1905 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 19:00:30 +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 f8d0174054 Add a getter for CUser::m_bIRCAway
Patch by Loriaki via sf.net patch tracker, thanks.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1903 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 11:29:55 +00:00
psychon ae5d15af46 Update AUTHORS
flakes is getting annoying enough to move up and reed seems to actually use
partyline. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1902 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 09:01:30 +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 2443c22a83 Add {List,Add,Del}Port to *status
Patch by BrianC, thanks a lot. (With some minor modifications)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1899 726aef4b-f618-498e-8847-2d620e286838
2010-04-08 16:04:56 +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 57cfa9502f Re-intend stuff I was previously to lazy to
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1897 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 19:28:39 +00:00
psychon 226d8db5da aclocal says I suck
But I suck back!

configure.in:6: warning: underquoted definition of ZNC_AUTO_FAIL


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1896 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 17:03:09 +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 521695fbd9 Fail less badly if openssl isn't found
Instead of erroring out, openssl is now disabled with a warning if it's not
found, unless you explicitly used --enable-openssl in which case configure will
error out again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1894 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:30:55 +00:00
psychon f023242555 Switch to using $SSL instead of $NOSSL in configure
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1893 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:13:17 +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 01aacc1c33 Another round of visual updates to dark-clouds.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1890 726aef4b-f618-498e-8847-2d620e286838
2010-04-05 16:39:00 +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
psychon 5a2844f920 Install webskins to the right directory and fix some spelling
If one used --with-module-prefix=bla to set a different than the default
module-prefix, the files were still installed to the default directory.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1888 726aef4b-f618-498e-8847-2d620e286838
2010-04-05 15:36:19 +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 49df8dc27d Clarify the meaning of returning false from OnWebRequest.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1886 726aef4b-f618-498e-8847-2d620e286838
2010-04-05 15:17:23 +00:00
cflakes 9735d5dcaa Fix dark-clouds' error and success bars' looks.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1885 726aef4b-f618-498e-8847-2d620e286838
2010-04-05 15:16:53 +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 26be9023ff Fixing some invalid XHTML markup.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1883 726aef4b-f618-498e-8847-2d620e286838
2010-04-05 11:17:24 +00:00
psychon 9b9fd6699a Cosmetic fix for the debug output
PrintStaticFile() called ExpandFile() twice if debug output was enabled which
caused it's DEBUG() error messages to be printed twice.

It then called CHTTPSock::PrintFile() to print the actual file. PrintFile()
always sends a result page, no matter if this is an error page or a proper
result page. Thus we should always return PAGE_DONE here, since PAGE_NOTFOUND
was already handled.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1882 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 18:54:44 +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 f5c2528c87 Do not create empty directories if one does ./znc --datadir=NON_EXISTING_DIR
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1878 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 15:58:04 +00:00
cflakes 5dcea36faa Do not expose ZNC's version number through the web interface
unless there's an active user session.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1877 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 15:20:22 +00:00
cflakes c3b863f102 Miscellaneous fixes and improvements to the look of dark-clouds and forest.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1876 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 14:24:25 +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 a86a8485d8 Fix forest skin.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1874 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 13:46:29 +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
silverleo e9c9ae9553 Renamed the default css file to properly work after the changes done in r1868
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1869 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 11:02:37 +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
psychon 505bdd1e78 Entirely my fault, sorry :(
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1867 726aef4b-f618-498e-8847-2d620e286838
2010-04-01 08:41:57 +00:00
psychon cac29752cf Add functions for modifing the ports on which znc listens
Patch is based on a patch from BrianC, thanks a lot.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1866 726aef4b-f618-498e-8847-2d620e286838
2010-04-01 08:39:10 +00:00
psychon 260c42fbe0 CRealListener: Inform CListener about being destroyed
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1865 726aef4b-f618-498e-8847-2d620e286838
2010-04-01 08:28:45 +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
psychon bad49e6a79 Include Socket.h in HTTPSock.h
CHTTPSock is derived from CSocket, so it obviously needs its definition.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1863 726aef4b-f618-498e-8847-2d620e286838
2010-03-31 18:48:48 +00:00
psychon 0decb1b7a2 GetSession(): Properly cache the result
This function caches its result for not-logged-in users since r1857. With this
commit, it also now works properly for logged-in ones.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1862 726aef4b-f618-498e-8847-2d620e286838
2010-03-30 19:52:17 +00:00
psychon 039d95073e Bugfix for CWebSock::GetRequestCookie()
When a module page is requested, m_sModName is set. When then GetSession() tries
to look up its session cookie, it doesn't find it since GetRequestCookie()
actually looks up Mod::<modname>::<cookie name>.

The fix is to look up the global cookie name if the mod one doesnt exist.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1861 726aef4b-f618-498e-8847-2d620e286838
2010-03-30 19:49:51 +00:00
psychon ff4c3f4f03 Don't forward our own QUITs to clients
Colloquy disconnects if it receives a QUIT from the server. Also, the old
behavior wasn't really consistent, a quit was only forwarded if the user was in
any non-detached channels.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1860 726aef4b-f618-498e-8847-2d620e286838
2010-03-30 15:09:32 +00:00
psychon ba05f11ea4 Remove CWebSock::m_bLoggedIn
We can just check if m_pUser is NULL for the very same thing.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1859 726aef4b-f618-498e-8847-2d620e286838
2010-03-30 12:20:31 +00:00
psychon 4d149f3d5f Use GetSession() instead of m_spSession
m_spSession could be a NULL pointer while GetSession() new returns a NULL
pointer.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1858 726aef4b-f618-498e-8847-2d620e286838
2010-03-30 12:11:27 +00:00
psychon 12629f8e94 Make sure CWebSock::GetSession() only generates one session
When one sent a basic-auth header, OnLogin() was called with the request's data
which caused a GetSession() call which generated a new session. Sadly, this
session wasn't saved anywhere, so a new one session was generated later when
OnPageRequest() triggered. This could lead to a NULL pointer dereference.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1857 726aef4b-f618-498e-8847-2d620e286838
2010-03-30 12:06:27 +00:00