Commit Graph

1024 Commits

Author SHA1 Message Date
psychon 9b91f295bc I have no clue how, but I managed to break ZNC :( *fix*
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@929 726aef4b-f618-498e-8847-2d620e286838
2008-01-19 08:37:30 +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 1f9e4f9601 Save some space for --disable-modules by not compiling template and http socks
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@927 726aef4b-f618-498e-8847-2d620e286838
2008-01-18 22:46:40 +00:00
psychon 74fb58cce5 Add --no-color switch and only use escape sequences if isatty() says so
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@926 726aef4b-f618-498e-8847-2d620e286838
2008-01-18 22:27:59 +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 47c0cb9b82 Some code clean up and change KeepBuffer and KeepNick default for --makeconf
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@924 726aef4b-f618-498e-8847-2d620e286838
2008-01-18 22:11:53 +00:00
psychon b5e6518fdc Again, update to latest Csocket
I wonder how often I did this kind of commit already...


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@923 726aef4b-f618-498e-8847-2d620e286838
2008-01-17 22:44:12 +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 ce6adf6941 Make znc-buildmod work for fred :)
On his ksh / *bsd those escape sequences where not treated as escape sequences
but printed raw. This fixes that.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@921 726aef4b-f618-498e-8847-2d620e286838
2008-01-14 21:25:29 +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 cc20744683 Small cleanup to calling of OnBoot() for user modules
There is no reason to call it indirectly and this should also
decrease the binary size a little.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@919 726aef4b-f618-498e-8847-2d620e286838
2008-01-08 19:48:45 +00:00
psychon 5210c3bfae Fix for OpenBSD and don't busy loop for file locks
I don't think there is a high change that the file lock becomes available
in the short time we did loop and retry the lock, so that code served no
real purpose.

Also, this includes unistd.h in Utils.h which is needed for OpenBSD.
Thanks to fred for testing on his openbsd/sparc box.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@918 726aef4b-f618-498e-8847-2d620e286838
2008-01-08 17:13:10 +00:00
psychon f497932fb2 Update my mail address in the AUTHORS file
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@917 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:33:32 +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 378563abf9 Config writing: Make the <Chan> sections a lot smaller
Buffer, KeepBuffer and AutoCycle are only written if different from the user
settings; Detached is only written when set.

Thanks to SilverLeo for this patch


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@913 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:23:02 +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 c4891c5dd8 Fix a segfault on exit
When we ran CZNC::~CZNC() we called DeleteUsers() which called
RestartConnectUser(). Since we had already deleted that timer, we called
some already deleted class.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@908 726aef4b-f618-498e-8847-2d620e286838
2008-01-03 20:01:26 +00:00
psychon afaf1e30b2 Remove third argument of main()
According to [1] the three-argument form of main() should be avoided and since
we have no reason to use that one, let's avoid it.

1: http://www.gnu.org/software/libc/manual/html_node/Program-Arguments.html


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@907 726aef4b-f618-498e-8847-2d620e286838
2007-12-27 20:58:13 +00:00
psychon 10519ae595 Change the tag CZNC::GetTag() returns to be shorter
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@906 726aef4b-f618-498e-8847-2d620e286838
2007-12-27 20:42:52 +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 a5e9f1c751 Update to latest Csocket
This saves me 70% of CPU time on a DCC transfer over localhost.
With this patch ZNC officially sucks less (tm) :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@899 726aef4b-f618-498e-8847-2d620e286838
2007-12-06 13:05:50 +00:00
psychon 425fd72c41 Add -D_FORTIFY_SOURCE=2 to our CXXFLAGS by default
This can be called 'inspired by Marcus Rueckert <darix@opensu.se>'


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@898 726aef4b-f618-498e-8847-2d620e286838
2007-12-04 20:03:27 +00:00
psychon 0e65f92d09 New znc-buildmod which works on a bourne shell (at least I hope so)
This was testes on bash, dash and tcsh.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@897 726aef4b-f618-498e-8847-2d620e286838
2007-12-03 21:52:00 +00:00
psychon 64cd0ae1d5 Again a patch which can be called 'by crox'
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@896 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 16:10:08 +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 cf41b0acd0 Switch back to a min select timeout of 500 msec
x-x noticed that ConnectDelay = 4 would break with a min timeout of 5 sec...


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@894 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 15:25:11 +00:00
psychon b51302be13 Change the list of to-be-deleted users into a std::map
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@893 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 15:16:21 +00:00
psychon 953bfcbbf4 Add ClearAllChannelBuffers command to *status (ClearBuffer for all channels)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@892 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 15:14:17 +00:00
psychon 4e0ccf8331 Change CLockFile so that it doesn't leak fds when you call Open() twice
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@891 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 09:34:49 +00:00
psychon f74f501d5a Handle CTCP to *status
We only answer to PING and VERSION.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@890 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 09:25:19 +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 b94f538385 Only use -Wall etc for GCC
I doubt some other compiler (ICC?) would work with this, but meh...


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@888 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 09:22:51 +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 8b9dc867a4 Remove znc-0.000.ebuild and znc.spec
It really is nice to be added to distris :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@885 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 09:16:24 +00:00
psychon 2e69a1444e Increase the version number to 0.053
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@884 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 09:12:17 +00:00
psychon 4966831370 Bump version to 0.052
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@882 726aef4b-f618-498e-8847-2d620e286838
znc-0.052
2007-12-02 09:06:37 +00:00
psychon a8a4f41a22 Regenerate configure
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@881 726aef4b-f618-498e-8847-2d620e286838
2007-11-25 17:41:07 +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 4e5bec326e Update config.guess and config.sub to the version from automake 1.10
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@879 726aef4b-f618-498e-8847-2d620e286838
2007-11-24 21:44:14 +00:00