Commit Graph

116 Commits

Author SHA1 Message Date
Alexey Sokolov ca476ef558 Bump version of master to 0.203
As 0.202 is being released today
2011-09-20 23:12:12 +07:00
Uli Schlachter f97a6a8a26 Fix network module calls
These calls really should be network module calls, so this fixed
NETWORKMODULECALL() to again silently do nothing if the network is NULL.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-16 11:07:36 +02:00
Uli Schlachter 64ae6f30fb Fix ALLMODULECALL()
It didn't call network modules, so stuff like OnBoot() wasn't sent to network
modules.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-12 17:36:28 +02:00
Uli Schlachter 9e3019db72 Remove MODULECALL macro
Depending on which of its arguments where NULL, that macro called network / user
modules or not. While this is nice in that it avoids crashes, this behavior
actually surprised me and I'd rather have the caller explicitly say what it
wanted to do.

This macro is replaced with explicit calls to {GLOBAL,USER,NETWORKMODULECALL}.

Since there are actually module calls which do provide a CClient*, but may
happen before login (OnUnknownUserRaw() and the 3 CAP hooks), those are changed
to get the client pointer as their first argument. This should make it more
obvious that these module calls are special.

This commit should make it easier to catch bugs like the recent
OnClientDisconnected() with m_pUser == NULL.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-12 17:26:32 +02:00
Kyle Fuller 895d766499 Only run NETWORKMODULECALL from MODULECALL if we have a network 2011-09-12 14:32:43 +00:00
Uli Schlachter 893a631aa5 Wrap MODULECALL macros in a do-while
This makes sure that there is a semicolon after his macro call and that this
macro works correctly in an if, e.g. if (foo) MODULECALL(foo);

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-10 14:00:58 +02:00
Uli Schlachter 3e913d49ec assert that we have a user/network on module calls
exoa found a bug where OnClientDisconnected() was called with m_pUser = NULL
when a client disconnected before logging in which blows up further down the
road.

This stuff should *never* be called with NULL pointers, despite the if which it
has. E.g. the above case skipped user modules, but global modules where still
called with a NULL pointer which they didn't expect nor handle for
OnClientDisconnected().

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-10 11:51:29 +02:00
Kyle Fuller 8dd2a704bb Create network modules 2011-08-24 19:07:32 +01:00
Alexey Sokolov afbd7410b1 Fix doxycomment about global mobules. 2011-08-22 00:56:56 +07:00
Uli Schlachter 80c76c97a6 Remove GLOBALMODCONSTRUCTOR
MODCONSTRUCTOR does that job just fine (now).

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 18:01:58 +02:00
Kyle Fuller c456d20b21 Merge CGlobalModule(s) into CModule(s) 2011-08-21 13:34:22 +01:00
Uli Schlachter 091a2875ad Increase the version number to 0.201
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-20 22:35:14 +02:00
Uli Schlachter d91803bf22 Increase the version number to 0.200
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-20 22:33:15 +02:00
Uli Schlachter bc67400daa Increase the version number to 0.099
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-03-28 11:22:34 +02:00
Uli Schlachter add7d7953e Increase the version number to 0.098
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-03-28 11:22:34 +02:00
psychon b9b0fd4c87 Oh, shiny... NOT
(Yes, it's that time of the year again)

Signed-off-by: Uli Schlachter <psychon@znc.in>

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2260 726aef4b-f618-498e-8847-2d620e286838
2011-01-14 17:03:24 +00:00
psychon 3ecbf13390 Use autoheader
This commit adds a zncconfig.h to ZNC that is automatically generated by
configure. This is done because the -DPACKAGE_STRING=\"znc\ 0.097\" that
configure adds to CXXFLAGS breaks znc-buildmod.

This means that we have to include zncconfig.h as the very first header in every
C++ file that is compiled. This commit kinda cheats and instead adds this
include as the very first thing to all header files we have. This should
hopefully mean that modules don't have to include this.

Because Csocket includes defines.h too late, this commit causes znc to divert
from upstream Csocket once again. :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2250 726aef4b-f618-498e-8847-2d620e286838
2011-01-07 15:01:08 +00:00
psychon aeeb1eb35b Move some -D flags to Makefile
Doing it like this is the only supported way with autoconf and works around
quite some messy mess.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2247 726aef4b-f618-498e-8847-2d620e286838
2011-01-05 19:08:07 +00:00
psychon 1023d868e4 Fix some warnings with -pedantic
"invoking macro GLOBALMODULECALL argument 4: empty macro arguments are undefined
in ISO C90 and ISO C++98"


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2177 726aef4b-f618-498e-8847-2d620e286838
2010-11-07 16:12:17 +00:00
psychon fcd8df5c87 Increase the version number to 0.097
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2169 726aef4b-f618-498e-8847-2d620e286838
2010-11-06 14:57:13 +00:00
psychon 27c129633f Increase the version number to 0.096
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2167 726aef4b-f618-498e-8847-2d620e286838
2010-11-06 14:55:25 +00:00
psychon 3ca36c4af7 Increase the version number to 0.095
configure is now generated by autoconf 2.67 instead of 2.65.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2106 726aef4b-f618-498e-8847-2d620e286838
2010-08-20 14:14:52 +00:00
psychon e1b4abe05c Increase the version number to 0.094
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2104 726aef4b-f618-498e-8847-2d620e286838
2010-08-20 14:12:15 +00:00
psychon 09c4f1466a Beware of flying spaghetti monsters, they bite.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2103 726aef4b-f618-498e-8847-2d620e286838
2010-08-18 07:59:55 +00:00
psychon a4f8133e15 Fix a NULL pointer dereference in route_replies
When there was only one client with a pending request and that client
disconnected from ZNC, we didn't destroy the timeout. This means that the
associated timer eventually fired and then tried to display which request caused
the timeout. But since we already cleaned up the rest, this resulted in a NULL
pointer dereference.

This commit fixes also another bug: If two different clients got pending
requests and the client whose request was currently handled disconnected, we
didn't send the other client's request to the IRCd.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2102 726aef4b-f618-498e-8847-2d620e286838
2010-08-18 07:57:23 +00:00
psychon 94ea2c6c42 Add new macro ALLMODULECALL()
This macro does a module call on all global and all user modules on all users.
This is useful for e.g. OnBoot().


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2075 726aef4b-f618-498e-8847-2d620e286838
2010-07-08 16:38:18 +00:00
psychon 430898be46 Add new macro GLOBALMODULECALL()
MODULECALL() calls global and user modules, GLOBALMODULECALL() only calls global
modules. The macro arguments are the same, but GLOBALMODULECALL() can live with
a user being NULL while MODULECALL() detests being called like that.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2074 726aef4b-f618-498e-8847-2d620e286838
2010-07-08 16:05:40 +00:00
psychon 17e7b0f4cf Increase the version number to 0.093
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2059 726aef4b-f618-498e-8847-2d620e286838
2010-07-03 09:39:39 +00:00
psychon ced990fb87 Patch by DarthGandalf, thanks.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2042 726aef4b-f618-498e-8847-2d620e286838
2010-06-24 19:42:51 +00:00
psychon 35ef37acc4 Increase the version number to 0.091
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2009 726aef4b-f618-498e-8847-2d620e286838
2010-06-06 07:26:05 +00:00
psychon 501c76a4d5 Increase the version number to 0.090
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2007 726aef4b-f618-498e-8847-2d620e286838
2010-06-06 07:23:52 +00:00
psychon 38d6129964 Move the definition of _SKINDIR_ elsewhere
It's only used in WebModules.cpp and in contrast to the other #defines from
main.h, this one is not set in configure by default.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1996 726aef4b-f618-498e-8847-2d620e286838
2010-05-17 12:56:23 +00:00
psychon fbe5dd10e7 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 3faf0adf90 Some more tabs gone
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1964 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 20:26:30 +00:00
psychon f2d7ae1a08 Change a bunch of tabs into spaces
At the beginning of lines, one uses tabs for indenting. In the middle of the
line, you use spaces. If you want two different lines to line up with each
other, you start them with the same number of tabs and use spaces for the rest
of the indenting in the "other" line.

Really, that's how one does it!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1963 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 20:15:01 +00:00
psychon f72e2f8abd Remove --disable-modules
ZNC without modules is like rain without being inside,
you really don't want that!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1794 726aef4b-f618-498e-8847-2d620e286838
2010-02-25 12:29:40 +00:00
prozacx ad92c58c42 Initial commit of webmods - still lots of work to be done
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1784 726aef4b-f618-498e-8847-2d620e286838
2010-02-22 07:40:22 +00:00
cflakes b6e07d9327 Increase the version number to 0.089. This forces psychon to release the next version as 0.090 and from there on we can go to 1.0 or 2.0.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1768 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 13:25:35 +00:00
psychon 4a38a76e0c Increase the version number to 0.081
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1756 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 11:51:05 +00:00
psychon ed378aab62 Increase the version number to 0.080
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1754 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 11:49:00 +00:00
psychon ae29c50eb4 Add some more doxygen comments
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1718 726aef4b-f618-498e-8847-2d620e286838
2010-01-23 13:01:00 +00:00
silverleo 07d7477dec It's 2010, where's my hoverboard?
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1693 726aef4b-f618-498e-8847-2d620e286838
2010-01-06 09:37:05 +00:00
psychon e7c78159f8 Increase the version number to 0.079
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1678 726aef4b-f618-498e-8847-2d620e286838
2009-12-18 16:09:35 +00:00
psychon f1945fdde4 Increase the version number to to 0.078
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1676 726aef4b-f618-498e-8847-2d620e286838
2009-12-18 16:06:15 +00:00
psychon 08045fff41 Increase the version number to 0.077
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1636 726aef4b-f618-498e-8847-2d620e286838
2009-09-24 19:06:46 +00:00
psychon 738d8aca64 Increase the version number to 0.076
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1634 726aef4b-f618-498e-8847-2d620e286838
2009-09-24 19:04:57 +00:00
psychon 7c1689db7c Increase the version number to 0.075
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1578 726aef4b-f618-498e-8847-2d620e286838
2009-07-23 16:59:41 +00:00
psychon a684891599 Increase the version number to 0.074
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1576 726aef4b-f618-498e-8847-2d620e286838
2009-07-23 16:56:53 +00:00
psychon e11dbf2290 Increase the version number to 0.073
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1573 726aef4b-f618-498e-8847-2d620e286838
2009-07-21 19:45:05 +00:00
psychon 9f71f301ce Increase the version number to 0.072
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1571 726aef4b-f618-498e-8847-2d620e286838
2009-07-21 19:42:57 +00:00