Commit Graph

335 Commits

Author SHA1 Message Date
psychon
8f22dcc60d Fix all those warnings from -Wshadow
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@964 726aef4b-f618-498e-8847-2d620e286838
2008-02-19 20:25:21 +00:00
psychon
3f45131e58 autoop: Don't answer on too short challenges
Thanks to SilverLeo for this patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@960 726aef4b-f618-498e-8847-2d620e286838
2008-02-17 12:23:26 +00:00
psychon
f74ab87e19 And fix a shitload of trailing whitespaces and space / tab mixups in ZNC
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@959 726aef4b-f618-498e-8847-2d620e286838
2008-02-16 12:52:11 +00:00
psychon
bcb0306393 Don't allow users to change their user name through spoofed webadmin requests
Since adding and editing users is handled pretty much the same way in webadmin,
you could change your user name when you sent a POST requests with some
arbitrary user field:

 echo "user=newuser&submitted=1" | \
 lynx -post_data -auth=user:pass http://localhost:55455/edituser

This was spotted by SilverLeo who seems to spend quite some time trying to make
ZNC break, which is a good thing. Thanks!

Oh and btw, the last commit (delete the pid file) is from SilverLeo.
I forgot to mention him in the commit msg. Sorry.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@949 726aef4b-f618-498e-8847-2d620e286838
2008-02-10 10:18:54 +00:00
psychon
6fea28cad0 Update simple_away's copyright date
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@938 726aef4b-f618-498e-8847-2d620e286838
2008-01-30 10:28:15 +00:00
psychon
fc172bff6e Fix a NULL pointer dereference in the 'add user' page of webadmin
This was just recently introduced in rev 935 "Display user's vhost if it's
not in the global vhost list".

Thanks to icu and Kuja for reporting.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@937 726aef4b-f618-498e-8847-2d620e286838
2008-01-28 16:28:10 +00:00
psychon
9f19e82cf5 Webadmin: Display user's vhost too if it's not in the global vhost list
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@935 726aef4b-f618-498e-8847-2d620e286838
2008-01-20 16:50:53 +00:00
psychon
c226c30095 Don't use <> but "" for the includes in kickrejoin
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@928 726aef4b-f618-498e-8847-2d620e286838
2008-01-18 23:06:54 +00:00
psychon
5370a54012 Add DenySetVHost patch from Veit Wahlich aka cru
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@925 726aef4b-f618-498e-8847-2d620e286838
2008-01-18 22:18:36 +00:00
psychon
d7c51ed141 And again some makefile stuff (this time it's some new depend code)
We are back to the behaviour of some old version of the Makefile

If you want to compile ZNC only once, just use make.

If you want the Makefile do to dependency tracking and that fancy stuff,
run make depend which creates the .depend and modules/.depend dirs.

From then on some dependency files get written when you compile something.

(The way we did it before now was bad, because all the .cpp files depended on
 the .depend dir which got its mtime updated regulary)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@922 726aef4b-f618-498e-8847-2d620e286838
2008-01-16 20:56:07 +00:00
psychon
660eded107 Add simple_away module
This modules sets you away some time after the last client detaches and it sets
you back when you reattach.

You can include %s in your away reason which is replaced with the current
time when setting you away.

If you set an away reason yourself while you are attached, the module won't
change this reason.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@920 726aef4b-f618-498e-8847-2d620e286838
2008-01-09 17:39:44 +00:00
psychon
5368d1634f Make it more clear that the sample module is loaded
Some others reported that all their text is read, but they did not know it was
the sample module. Now this should clear


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@916 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:32:30 +00:00
psychon
e72c445694 Clean up includes
All the headers are now self-contained (g++ Header.h -o /dev/null).

Some system headers where moved to the .cpp they are actually needed in,
some of our own headers are includes less. (Especially MD5.h)

Headers are sorted alphabetically while in e.g. FileUtils.cpp FileUtils.h
is the first file included.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@915 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:31:16 +00:00
psychon
3637091b60 Fix/Change the generation of .depend
Instead of having one big file which is generated in a seperated step,
we now have a directory where serveral files are created.

This fixes .depend, which was broken since we don't generate .o files
for our modules.

Everyone will have to delete his .depend file after this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@914 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:28:03 +00:00
psychon
170ff7f360 Let awaynick print a message / not load if KeepNick is enabled
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@912 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:17:33 +00:00
psychon
95fe0f2f9b Add that copyright header to saslauth and add Heiko to AUTHORS
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@911 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:15:28 +00:00
psychon
eeec633e30 Update copyright header for 2008
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@910 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:13:07 +00:00
psychon
55a3fa0e05 Remove OnFinishedConfig() module call
No one used it anyway


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@909 726aef4b-f618-498e-8847-2d620e286838
2008-01-03 21:00:25 +00:00
psychon
731969fd83 modules/Makefile: Don't create object files, but directly shared objects
This also simplifies the module flag handling for saslauth and modperl.
(Both don't need a special rule for compilling anymore)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@905 726aef4b-f618-498e-8847-2d620e286838
2007-12-27 08:22:57 +00:00
psychon
b490b12058 Fix some gcc 4.3 warnings
These are mostly string casts, handling function's return value and some
weird warning about missing spaces on empty while loops.

These were reported by and fixed with Marcus Rueckert <darix@opensu.se>.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@904 726aef4b-f618-498e-8847-2d620e286838
2007-12-20 18:31:48 +00:00
psychon
db9694836e Commit patches from x-x which split up long lines
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@903 726aef4b-f618-498e-8847-2d620e286838
2007-12-19 20:53:03 +00:00
psychon
1360effd31 This covers the code changes for the datadir move (which is now finished)
Based on darix' patch I wrote this. Modperl's changes were not tested since I
didn't find someone who could test it. Well...

Ah and btw it regenerates configure


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@902 726aef4b-f618-498e-8847-2d620e286838
2007-12-12 21:15:44 +00:00
psychon
608fbdbdb0 Move the webadmin skins to /usr/share/znc per default
This patch which handles the build stuff is from
Marcus Rueckert <darix@opensu.se>.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@901 726aef4b-f618-498e-8847-2d620e286838
2007-12-12 21:11:40 +00:00
psychon
ba27405483 Make webadmin use the GLOBALMODCONSTRUCTOR macro
Why didn't it do this already anyway?


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@900 726aef4b-f618-498e-8847-2d620e286838
2007-12-12 20:57:47 +00:00
psychon
ef02c621a6 Spelling fixage
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@895 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 15:39:27 +00:00
psychon
496e164bef Let autoattach save and reload its settings when it's loaded
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@889 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 09:23:49 +00:00
psychon
89e907efaa Remove $Log$ which was used by CVS
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@887 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 09:20:45 +00:00
psychon
6609143820 Let webadmin use the user's defaults
Now webadmin uses what you have in your <User> section for DefModes,
BufferCount, AutoCycle and KeepBuffer when you create a new user.

Thanks to SilverLeo for noticing and writing this patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@886 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 09:19:24 +00:00
psychon
3f27be8bde Add saslauth. This modules has been waiting in crox' branch for like ever
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@880 726aef4b-f618-498e-8847-2d620e286838
2007-11-25 17:35:36 +00:00
psychon
67342d0c29 Add a del command to autoattach
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@878 726aef4b-f618-498e-8847-2d620e286838
2007-11-24 21:24:15 +00:00
psychon
b0e84a0605 Awaynick now saves its latest setting and restores it on reload
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@877 726aef4b-f618-498e-8847-2d620e286838
2007-11-17 22:44:34 +00:00
psychon
5412fd1494 Remove some code from crypt which makes no sense
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@876 726aef4b-f618-498e-8847-2d620e286838
2007-11-17 22:43:11 +00:00
psychon
d67c5973ad Handle negative / invalid arguments to kickrejoin correctly
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@872 726aef4b-f618-498e-8847-2d620e286838
2007-11-12 21:53:02 +00:00
psychon
a60270de81 Remove save command for perform, add and del already save everything
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@868 726aef4b-f618-498e-8847-2d620e286838
2007-11-12 21:26:29 +00:00
psychon
7c09af3dde Add 'list' command to stickychan
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@867 726aef4b-f618-498e-8847-2d620e286838
2007-11-12 21:24:52 +00:00
psychon
1c3105d782 Change MODDIR really into the moddir and add --moddir to znc-config
Now we don't append znc everywhere where MODDIR is used :)

Thanks to CNU for the initial patch (yay, I didn't forget to mention him.
I did with the last commit. The --disable-perl one was spotted by him too)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@862 726aef4b-f618-498e-8847-2d620e286838
2007-11-04 08:25:27 +00:00
psychon
8100ef945c Fix the Makefile for --disable-perl
We still had modperl in FILES and thus tried to compile / install it

To avoid an endless loop I need := instead of = on the assignment with sed.
For consistency I changed all the others too (this should also be faster).



git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@861 726aef4b-f618-498e-8847-2d620e286838
2007-11-03 20:19:19 +00:00
psychon
ee350ab744 Change second argument to module in OnLoad() from sErrorMsg to sMessage.
This message is always displayed when the module returns (well, screw webadmin)
and this way a module can notify the user if it loaded but something unexpected
happened.

As you might guess, no one uses this ATM :)

Proposal comes from prozac


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@855 726aef4b-f618-498e-8847-2d620e286838
2007-10-28 17:57:07 +00:00
psychon
87d19870cd Merge sf.net patch 1812367 'Disable auto-rejoin on kick'
This removes the rejoin from core (the channel gets disabled) and adds
a kickrejoin module.

Thanks to cycomate for the original patch


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@852 726aef4b-f618-498e-8847-2d620e286838
2007-10-24 17:44:12 +00:00
psychon
60a5e97c59 Fix modules/Makefile.in
- Perl module (*.pm) were not installed
- With -j stuff was (tried to) install before create_install_dir was ran


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@850 726aef4b-f618-498e-8847-2d620e286838
2007-10-24 09:24:00 +00:00
psychon
69e076b166 chmod a-x graphiX's templates
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@849 726aef4b-f618-498e-8847-2d620e286838
2007-10-22 22:22:11 +00:00
psychon
5993255ac3 Fix some ICC warnings found by Kuja
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@846 726aef4b-f618-498e-8847-2d620e286838
2007-09-27 21:00:08 +00:00
psychon
fa7a588c81 Merge rev 1034 from crox 'fixed parentheses'
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@845 726aef4b-f618-498e-8847-2d620e286838
2007-09-27 20:36:56 +00:00
psychon
a09a7e79f6 Switch to the copyright headers the GPLv2 wants us to have
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@843 726aef4b-f618-498e-8847-2d620e286838
2007-09-21 18:55:33 +00:00
psychon
03e6d586c3 Remove antiidle module.
Antiidle utilities are bad as they waste bandwidth and might fill logs.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@841 726aef4b-f618-498e-8847-2d620e286838
2007-09-19 15:23:45 +00:00
psychon
303af16e67 Fix make install (modules weren't installed)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@834 726aef4b-f618-498e-8847-2d620e286838
2007-08-26 06:09:19 +00:00
psychon
6169df3f7a Rewrite Makefile.in, remove -s from no-debug
CXXFLAGS and auto-generate .depend if GCC is used.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@829 726aef4b-f618-498e-8847-2d620e286838
2007-08-19 15:27:16 +00:00
psychon
383f435728 Fix nickserv module which was broken by my last commit to it.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@824 726aef4b-f618-498e-8847-2d620e286838
2007-08-08 17:24:44 +00:00
psychon
eb850c933d Fix images.
Someone *cough* x-x *cough* didn't add the images as binary files.
Only the .ico files weren't broken. Fix this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@820 726aef4b-f618-498e-8847-2d620e286838
2007-08-07 20:05:57 +00:00
psychon
37d463cd32 partyline: Rewrite the whole fixed channel list when changing it instead of some
CString::Replace() magic.

This was inspired by sf.net bug 1762977 comment 2.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@819 726aef4b-f618-498e-8847-2d620e286838
2007-08-06 09:24:20 +00:00