]> jfr.im git - irc/quakenet/newserv.git/log
irc/quakenet/newserv.git
16 years agoadd channel timestamp
Paul [Sun, 13 Jan 2008 20:43:12 +0000 (20:43 +0000)] 
add channel timestamp

16 years agofix core when using (kill) to newsearch
Paul [Sun, 13 Jan 2008 20:38:43 +0000 (20:38 +0000)] 
fix core when using (kill) to newsearch

16 years agoSecond merge
Chris Porter [Wed, 23 Jan 2008 23:03:50 +0000 (23:03 +0000)] 
Second merge

16 years agoMerge
Chris Porter [Wed, 23 Jan 2008 23:03:18 +0000 (23:03 +0000)] 
Merge

16 years agoAdd +P handling, for no particular reason.
Chris Porter [Wed, 23 Jan 2008 23:02:44 +0000 (23:02 +0000)] 
Add +P handling, for no particular reason.

16 years agoFinish the T bug fix.
Chris Porter [Sat, 12 Jan 2008 18:21:28 +0000 (18:21 +0000)] 
Finish the T bug fix.

16 years agoFix a bug in channelhandlers.c where in some circumstances the reason argument of...
Chris Porter [Tue, 8 Jan 2008 22:44:24 +0000 (22:44 +0000)] 
Fix a bug in channelhandlers.c where in some circumstances the reason argument of the part hook was not initalised.

16 years agoRefactor a lot of T's matching code, and add part message matching support.
Chris Porter [Tue, 8 Jan 2008 21:25:30 +0000 (21:25 +0000)] 
Refactor a lot of T's matching code, and add part message matching support.

16 years agoActually try compiling the T fix.
Chris Porter [Tue, 8 Jan 2008 20:21:17 +0000 (20:21 +0000)] 
Actually try compiling the T fix.

16 years agoipnode values seem to be rubbish most of the time.
Chris Porter [Sun, 6 Jan 2008 16:39:16 +0000 (16:39 +0000)] 
ipnode values seem to be rubbish most of the time.

16 years agoAdd support for tags to sockets, fix a few bugs too.
Chris Porter [Wed, 19 Dec 2007 02:57:29 +0000 (02:57 +0000)] 
Add support for tags to sockets, fix a few bugs too.

16 years agoTry non-blocking sockets.
Chris Porter [Tue, 18 Dec 2007 19:02:18 +0000 (19:02 +0000)] 
Try non-blocking sockets.

16 years agoComments -> commands.
Chris Porter [Tue, 18 Dec 2007 17:12:44 +0000 (17:12 +0000)] 
Comments -> commands.

16 years agoFreeBSD fixes, should be ok under Linux.
Chris Porter [Tue, 18 Dec 2007 16:29:58 +0000 (16:29 +0000)] 
FreeBSD fixes, should be ok under Linux.

16 years agoAdd socket api for lua, currently untested.
Chris Porter [Tue, 18 Dec 2007 16:12:03 +0000 (16:12 +0000)] 
Add socket api for lua, currently untested.

16 years agoMerge.
Chris Porter [Sat, 1 Dec 2007 19:02:33 +0000 (19:02 +0000)] 
Merge.

16 years agoControl services are now invisible.
Chris Porter [Sat, 1 Dec 2007 19:00:51 +0000 (19:00 +0000)] 
Control services are now invisible.

16 years agoDisabled isaccount on command as authhash+lua == crash.
Chris Porter [Sat, 1 Dec 2007 19:00:36 +0000 (19:00 +0000)] 
Disabled isaccount on command as authhash+lua == crash.

16 years agoMerge.
Chris Porter [Sat, 1 Dec 2007 18:54:47 +0000 (18:54 +0000)] 
Merge.

16 years agoAllow multiple U instances.
Chris Porter [Sat, 1 Dec 2007 16:27:01 +0000 (16:27 +0000)] 
Allow multiple U instances.

16 years agoFix the kicker code.
Chris Porter [Sat, 1 Dec 2007 14:38:42 +0000 (14:38 +0000)] 
Fix the kicker code.

16 years agoDon't know what happened to this function, I wrote this code before, there's a script...
Chris Porter [Sat, 1 Dec 2007 01:49:35 +0000 (01:49 +0000)] 
Don't know what happened to this function, I wrote this code before, there's a script which relies on it

16 years agoAdd psql support to lua.
Chris Porter [Fri, 30 Nov 2007 23:03:33 +0000 (23:03 +0000)] 
Add psql support to lua.
Rearrange lua loading sequence so the internal data structures are actually valid when lua's pcalling.

16 years agoT now uses patricia node usercounts.
Chris Porter [Fri, 30 Nov 2007 20:53:41 +0000 (20:53 +0000)] 
T now uses patricia node usercounts.

16 years agoMerge.
Chris Porter [Fri, 30 Nov 2007 20:42:12 +0000 (20:42 +0000)] 
Merge.

16 years agoMake G's check for opers on channels for checkchannel a little more lax, returning...
Chris Porter [Fri, 30 Nov 2007 20:39:04 +0000 (21:39 +0100)] 
Make G's check for opers on channels for checkchannel a little more lax, returning BAD only if +i/+k/+p/+s are set.

16 years agoAdd country pusher to lua.
Chris Porter [Fri, 30 Nov 2007 19:45:43 +0000 (19:45 +0000)] 
Add country pusher to lua.

16 years agoAdd country name lookup to newsearch.
Chris Porter [Fri, 30 Nov 2007 18:35:30 +0000 (18:35 +0000)] 
Add country name lookup to newsearch.

16 years agoThis might help with the rehash schedule.
Chris Porter [Thu, 22 Nov 2007 17:00:19 +0000 (17:00 +0000)] 
This might help with the rehash schedule.

16 years agoFix gcc3 warnings.
Chris Porter [Thu, 22 Nov 2007 16:44:33 +0000 (16:44 +0000)] 
Fix gcc3 warnings.

16 years agoAlter default setting/value lengths for settings.
Chris Porter [Thu, 22 Nov 2007 16:43:12 +0000 (16:43 +0000)] 
Alter default setting/value lengths for settings.

16 years agoAlter the default values a bit for 2007.
Chris Porter [Thu, 22 Nov 2007 16:33:38 +0000 (16:33 +0000)] 
Alter the default values a bit for 2007.

16 years agobump version number
Chris Porter [Thu, 22 Nov 2007 16:17:09 +0000 (16:17 +0000)] 
bump version number
replace settings table with a more useful settings table
version reply is now stored in the settings table
sanitise the input for phrase names and version replies

16 years agoRefactor T's glining code as it's a complete nightmare.
Chris Porter [Thu, 22 Nov 2007 15:49:11 +0000 (15:49 +0000)] 
Refactor T's glining code as it's a complete nightmare.

16 years agoMerge.
Chris Porter [Sun, 4 Nov 2007 02:45:53 +0000 (02:45 +0000)] 
Merge.

16 years agoAllow local.in to define MAXNICKEXTS.
Chris Porter [Sun, 4 Nov 2007 02:44:12 +0000 (03:44 +0100)] 
Allow local.in to define MAXNICKEXTS.

16 years agorequest was not checking the return code of getnickext, which really broke Z, added...
Chris Porter [Sun, 4 Nov 2007 02:41:18 +0000 (03:41 +0100)] 
request was not checking the return code of getnickext, which really broke Z, added error check.

16 years agoShould be using double indirection here.
Chris Porter [Sun, 4 Nov 2007 00:44:12 +0000 (00:44 +0000)] 
Should be using double indirection here.

16 years agoCleanup.
Chris Porter [Sat, 3 Nov 2007 22:53:12 +0000 (22:53 +0000)] 
Cleanup.

16 years agoMake nterfacer's config file syntax sane.
Chris Porter [Sat, 3 Nov 2007 22:44:14 +0000 (22:44 +0000)] 
Make nterfacer's config file syntax sane.

16 years agoCleanup dependencies.
Chris Porter [Sat, 3 Nov 2007 22:23:35 +0000 (22:23 +0000)] 
Cleanup dependencies.

16 years agoRemove helix from the tree.
Chris Porter [Wed, 31 Oct 2007 12:00:46 +0000 (12:00 +0000)] 
Remove helix from the tree.

16 years agoesockets now supports new protocol.
Chris Porter [Wed, 31 Oct 2007 11:58:08 +0000 (11:58 +0000)] 
esockets now supports new protocol.
Rewritten all the parsers, now using dynamic memory allocation, it's a lot less efficient (well, if allocating 16 bytes is a problem), but it's a LOT simpler.
Need to add limits to prevent people using all the RAM.

16 years agoNow using protocol v3.
Chris Porter [Wed, 31 Oct 2007 00:32:03 +0000 (00:32 +0000)] 
Now using protocol v3.
Seems to authenticate correctly.

BROKEN BUILD: esockets modifications are not complete.

16 years agoAdd SHA2 to the library.
Chris Porter [Tue, 30 Oct 2007 17:21:47 +0000 (17:21 +0000)] 
Add SHA2 to the library.

16 years agoAdd Rijndael code.
Chris Porter [Tue, 30 Oct 2007 14:15:40 +0000 (14:15 +0000)] 
Add Rijndael code.
Update .hgignores.
Move newserv.conf to newserv.conf.example.

17 years agoA few (mostly cosmetic) changes to the fakeuser module - failed to find a possible...
Tim Gordon [Fri, 31 Aug 2007 23:58:07 +0000 (00:58 +0100)] 
A few (mostly cosmetic) changes to the fakeuser module - failed to find a possible bug though

17 years agoMerge.
splidge [Mon, 30 Jul 2007 10:53:45 +0000 (11:53 +0100)] 
Merge.

17 years agoAvoid triggering invalid HOOK_CHANNEL_CREATE or HOOK_CHANNEL_JOINs
splidge [Mon, 30 Jul 2007 10:52:01 +0000 (11:52 +0100)] 
Avoid triggering invalid HOOK_CHANNEL_CREATE or HOOK_CHANNEL_JOINs

When a channel is created in response to a join or create, we send out the
HOOK_CHANNEL_NEWCHANNEL message.  Some things (e.g. Q9) might choose to
kick the user off, thus destroying the channel, in response to this.  In
such an event, sending HOOK_CHANNEL_CREATE or HOOK_CHANNEL_JOIN out with
a now invalid channel pointer can cause trouble, so don't do it.

Note there is the potential problem that the chanindex * can become
"invalid" when the channel is destroyed; in practice this should not be a
problem because (a) Usually something else will be hanging off the chanindex
if it has decided to kick the user out! and (b) chanindex's are allocated
using a recycling pool allocator, so even if the chanindex has been free'd
it will still be a valid pointer.

17 years agoMerge
Chris Porter [Wed, 18 Jul 2007 02:53:47 +0000 (03:53 +0100)] 
Merge

17 years agoAdd some severe flood protection to regexgline.
Chris Porter [Wed, 18 Jul 2007 02:47:53 +0000 (03:47 +0100)] 
Add some severe flood protection to regexgline.
Add umode support to lua's pushers.

17 years agoAdded "chanprofile" module.
splidge [Tue, 10 Jul 2007 22:12:32 +0000 (23:12 +0100)] 
Added "chanprofile" module.

17 years agoMerged.
splidge [Tue, 10 Jul 2007 22:11:38 +0000 (23:11 +0100)] 
Merged.

17 years agoAdded "channels" command (returns number of channels user is on for nicks)
splidge [Tue, 10 Jul 2007 22:11:10 +0000 (23:11 +0100)] 
Added "channels" command (returns number of channels user is on for nicks)

17 years agoIt's not necessary to scan port 559 for socks4 more than once.
splidge [Sat, 7 Jul 2007 16:32:36 +0000 (17:32 +0100)] 
It's not necessary to scan port 559 for socks4 more than once.

17 years agoTidied up some gratuitous malloc-failure code
splidge [Fri, 6 Jul 2007 10:32:51 +0000 (11:32 +0100)] 
Tidied up some gratuitous malloc-failure code

17 years agoUpdated proxyscan to use nsmalloc()
splidge [Fri, 6 Jul 2007 10:17:04 +0000 (11:17 +0100)] 
Updated proxyscan to use nsmalloc()

17 years agoAdded capability to pqsql module to use default unix socket.
splidge [Thu, 5 Jul 2007 12:24:58 +0000 (13:24 +0100)] 
Added capability to pqsql module to use default unix socket.

Updated pqsql so that if a host of "UNIX" is specified it will not pass
hostname/port information to the connect call, causing the postgres library
to fall back on the default unix domain socket.  This avoids the need to
specify the unix socket path in the newserv config file - desireable since
it can vary depending on the postgres installation.

The comparison is case sensitive so if your DB host is really called "unix"
then specifying the name in lowercase will cause it to connect via tcp as
before.

Also made "UNIX" the default hostname.

Also included the strlfunc.h to remove a compiler warning.

17 years agoMerge.
splidge [Thu, 5 Jul 2007 12:10:10 +0000 (13:10 +0100)] 
Merge.

17 years agoMake P join #tlz.
Chris Porter [Thu, 5 Jul 2007 01:58:10 +0000 (03:58 +0200)] 
Make P join #tlz.

17 years agoMerge!
Chris Porter [Thu, 5 Jul 2007 01:13:01 +0000 (02:13 +0100)] 
Merge!

17 years agomerge
Chris Porter [Thu, 5 Jul 2007 01:12:24 +0000 (03:12 +0200)] 
merge

17 years agoCommit pauls changes.
Paul [Thu, 5 Jul 2007 01:11:25 +0000 (03:11 +0200)] 
Commit pauls changes.

17 years agomerge
Chris Porter [Thu, 5 Jul 2007 01:02:46 +0000 (02:02 +0100)] 
merge

17 years agoFix poll handler, memset wasn't reaching the entire new reallocated area.
Chris Porter [Thu, 5 Jul 2007 00:57:56 +0000 (01:57 +0100)] 
Fix poll handler, memset wasn't reaching the entire new reallocated area.

17 years agoattempt 2
Paul [Sun, 1 Jul 2007 18:09:07 +0000 (18:09 +0000)] 
attempt 2

17 years agomerge
Paul [Sun, 1 Jul 2007 14:03:54 +0000 (14:03 +0000)] 
merge

17 years agoadd pqlasterror function for returning connection errors e.g.:
Paul [Sun, 1 Jul 2007 13:59:23 +0000 (13:59 +0000)] 
add pqlasterror function for returning connection errors e.g.:
[2007-07-01 13:49:36] info(pqsql): Attempting database connection: host=localhost port=431 dbname=newserv user=newserv password=moo
[2007-07-01 13:49:36] error(pqsql): Unable to connect to db: could not connect to server: Connection refused    Is the server running on host "localhost" and accepting      TCP/IP connections on port 431?
[2007-07-01 13:49:36] info(core): Loaded module pqsql OK.

17 years agosend host/port in connect string
Paul [Sun, 1 Jul 2007 12:52:56 +0000 (12:52 +0000)] 
send host/port in connect string

17 years agoadd 3 scans, typoe in db sql syntax
Paul [Sat, 30 Jun 2007 18:53:18 +0000 (18:53 +0000)] 
add 3 scans, typoe in db sql syntax

17 years agoshow pqsql error why connect fails
Paul [Sat, 30 Jun 2007 16:07:56 +0000 (16:07 +0000)] 
show pqsql error why connect fails

17 years agoupdate P to use pgsql
Paul [Sat, 30 Jun 2007 15:03:29 +0000 (15:03 +0000)] 
update P to use pgsql

17 years agoMake chanserv build the "newsearch" directory.
splidge [Fri, 22 Jun 2007 22:00:04 +0000 (23:00 +0100)] 
Make chanserv build the "newsearch" directory.

17 years agoBeginnings of chanserv-specific newsearch functionality.
splidge [Fri, 22 Jun 2007 21:59:36 +0000 (22:59 +0100)] 
Beginnings of chanserv-specific newsearch functionality.

For now this just adds the "auth" and "authchans" nicksearch display
formats.

17 years agoFixed nasty bug in NOT.
splidge [Thu, 21 Jun 2007 12:28:36 +0000 (13:28 +0100)] 
Fixed nasty bug in NOT.

17 years agoAdded channel counter to nicksearch.
splidge [Wed, 20 Jun 2007 19:28:01 +0000 (20:28 +0100)] 
Added channel counter to nicksearch.

17 years agoAdded new "channels" nick display format - displays each user's channels.
splidge [Tue, 19 Jun 2007 22:27:29 +0000 (23:27 +0100)] 
Added new "channels" nick display format - displays each user's channels.

17 years agoAdded support for multiple output formats.
splidge [Tue, 19 Jun 2007 22:03:22 +0000 (23:03 +0100)] 
Added support for multiple output formats.

Ported missing output formats from chansearch.

17 years agoRemoved defunct trueval() and falseval().
splidge [Tue, 19 Jun 2007 21:26:48 +0000 (22:26 +0100)] 
Removed defunct trueval() and falseval().

17 years agoAdded (authts) function for nicksearch.
splidge [Sun, 17 Jun 2007 00:58:06 +0000 (01:58 +0100)] 
Added (authts) function for nicksearch.

17 years agoPrevented (kick) from kicking opers or services.
splidge [Thu, 14 Jun 2007 14:43:29 +0000 (15:43 +0100)] 
Prevented (kick) from kicking opers or services.

17 years agoMerge.
splidge [Thu, 14 Jun 2007 13:55:48 +0000 (14:55 +0100)] 
Merge.

17 years agoAdded (kick <username>) function to chansearch.
splidge [Thu, 14 Jun 2007 13:53:58 +0000 (14:53 +0100)] 
Added (kick <username>) function to chansearch.

17 years agoMerge.
splidge [Fri, 8 Jun 2007 22:15:28 +0000 (23:15 +0100)] 
Merge.

17 years agoAdded "giveowner" command.
splidge [Fri, 8 Jun 2007 22:15:01 +0000 (23:15 +0100)] 
Added "giveowner" command.

17 years agoUpdated deregisterlocaluser.
splidge [Fri, 8 Jun 2007 22:14:17 +0000 (23:14 +0100)] 
Updated deregisterlocaluser.

Now has correct default reason.
Also made it trigger the HOOK_NICK_QUIT.

17 years agoAdded reason support for ns-gline.c and ns-kill.c
Ian Barker [Thu, 7 Jun 2007 10:47:49 +0000 (11:47 +0100)] 
Added reason support for ns-gline.c and ns-kill.c

17 years agoAdded list of commands from old Q
splidge [Wed, 6 Jun 2007 19:22:18 +0000 (20:22 +0100)] 
Added list of commands from old Q

17 years agofix stupid mistake when determining the size of the channel in gline/kill ...
Ian Barker [Tue, 5 Jun 2007 23:22:29 +0000 (00:22 +0100)] 
fix stupid mistake when determining the size of the channel in gline/kill ...

17 years agoMerged.
splidge [Tue, 5 Jun 2007 22:52:41 +0000 (23:52 +0100)] 
Merged.

17 years agoNewsearch overhauled.
splidge [Tue, 5 Jun 2007 22:16:02 +0000 (23:16 +0100)] 
Newsearch overhauled.

Removed the confusion of having both a return type specified in each node
and the return type being passed in on execute.

Now each node should always return the type indicated in its "returntype"
member.  Nodes who want its callees to return a certain type can call the
new "coerceNode()" to insert a conversion node as necessary to convert
types.  Note that coerceNode() has no overhead if the node already returns
the correct type.

The "type" parameter passed to search execute functions has been removed.

All existing modules have been rewritten to honour these rules, in a lot of
cases this means ripping out useless code to return different types (and as
a side-effect it has fixed all problems where a node was unable to correctly
return some types).  Sadly some nodes (eq, lt, gt) have got a bit messier as
they now need to coerce each subsequent parameter to match the type of the
first parameter.

Also fixed up some of the channel nodes to just return the relevant piece of
data rather than a BOOL acquired by performing some arbitrary operation on
that data.

Added the (length) function which returns the length of its input string.

Removed the (namelen) function as you can now call (length (name)) - or, to
reproduce the old function, (gt (length (name)) <constant>) which will
return all channel names above a constant length.

17 years agomodifed ns-gline.c and ns-kill.c to work in newsearch's chansearch aswell as nicksearch
Ian Barker [Tue, 5 Jun 2007 16:42:06 +0000 (17:42 +0100)] 
modifed ns-gline.c and ns-kill.c to work in newsearch's chansearch aswell as nicksearch

17 years agoMerged.
splidge [Mon, 4 Jun 2007 22:06:42 +0000 (23:06 +0100)] 
Merged.

17 years agoAdded (+ enabled) authedpct functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 21:48:15 +0000 (22:48 +0100)] 
Added (+ enabled) authedpct functionality in newsearch's chansearch

17 years agoAdded (+ enabled) uniquehostpct functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 21:38:45 +0000 (22:38 +0100)] 
Added (+ enabled) uniquehostpct functionality in newsearch's chansearch

17 years agoAdded (+ enabled) oppct functionality in newsearch's chansearch (also fixed a typo)
Ian Barker [Mon, 4 Jun 2007 21:24:13 +0000 (22:24 +0100)] 
Added (+ enabled) oppct functionality in newsearch's chansearch (also fixed a typo)

17 years agoAdded quoting and escaping support.
splidge [Mon, 4 Jun 2007 21:07:42 +0000 (22:07 +0100)] 
Added quoting and escaping support.

17 years agoAdded (+ enabled) topic functionality in newsearch's chansearch (also changed help...
Ian Barker [Mon, 4 Jun 2007 21:04:51 +0000 (22:04 +0100)] 
Added (+ enabled) topic functionality in newsearch's chansearch (also changed help note in ns-name.c)

17 years agoAdded (+ enabled) name functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 20:25:58 +0000 (21:25 +0100)] 
Added (+ enabled) name functionality in newsearch's chansearch

17 years agoAdded (+ enabled) namelen functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 20:11:12 +0000 (21:11 +0100)] 
Added (+ enabled) namelen functionality in newsearch's chansearch