Commit Graph

346 Commits

Author SHA1 Message Date
psychon ffe31fccd2 Shell module: Also read incomplete lines (no trailing newline) and display them
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1008 726aef4b-f618-498e-8847-2d620e286838
2008-04-01 08:59:13 +00:00
psychon 617e732f66 Only allow admins to load the shell module
The exception to this is if ZNC is compiled with -DMOD_SHELL_ALLOW_EVERYONE
x-x wanted this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1007 726aef4b-f618-498e-8847-2d620e286838
2008-04-01 08:57:21 +00:00
imaginos 9c88a6aedf bug when trying to track down the right chat session
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@989 726aef4b-f618-498e-8847-2d620e286838
2008-03-18 15:14:23 +00:00
imaginos 2578384277 documented how to debug with valgrind
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@988 726aef4b-f618-498e-8847-2d620e286838
2008-03-18 03:00:03 +00:00
imaginos 20a970ae3d make sure these scalars are declared as mortals as to avoid a memleak
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@987 726aef4b-f618-498e-8847-2d620e286838
2008-03-18 02:30:42 +00:00
imaginos ed15b68684 possible memleak during onload bu pZNCSpace not being mortal
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@986 726aef4b-f618-498e-8847-2d620e286838
2008-03-17 19:51:58 +00:00
imaginos 8873fbefa1 dont require .pm being in the mod name
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@982 726aef4b-f618-498e-8847-2d620e286838
2008-03-17 14:59:06 +00:00
imaginos a0b2a8fc2b changed (un|re)?loadmod to (un|re)?loadperlmodule
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@981 726aef4b-f618-498e-8847-2d620e286838
2008-03-17 04:22:49 +00:00
imaginos d53fa7b85d throw an warning if package definition is not found
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@977 726aef4b-f618-498e-8847-2d620e286838
2008-03-17 02:40:38 +00:00
psychon 7572c8e6a6 autoop: Add a define for the challenge length
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@973 726aef4b-f618-498e-8847-2d620e286838
2008-03-01 09:44:09 +00:00
psychon 973b41a99c Fix compilling modperl
Modperl was broken for quite some time and no one noticed...

The modperlFLAGS include the path to some static lib which will be linked in.
For this to work, we need to already have used one of its symbols.

Now, if the linker first sees this DynaLoader.a and then our object file,
there are no references to any symbol from it yet and thus he drops it.

The fix is easy: The modperlFLAGS need to be after modperl.cpp on the
command line.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@970 726aef4b-f618-498e-8847-2d620e286838
2008-03-01 09:29:26 +00:00
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