]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
16 years agoFirst step on the road of module loader rewriting. So far this only really removes...
om [Tue, 28 Aug 2007 18:47:55 +0000 (18:47 +0000)]
First step on the road of module loader rewriting. So far this only really removes module factories. Any modules not updated to use MODULE_INIT() yet will now fail to compile \o/

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7971 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoUse MODULE_INIT here too
w00t [Tue, 28 Aug 2007 18:43:15 +0000 (18:43 +0000)]
Use MODULE_INIT here too

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7970 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoNo idea why this wasn't using MODULE_INIT. Thanks Om.
w00t [Tue, 28 Aug 2007 18:37:44 +0000 (18:37 +0000)]
No idea why this wasn't using MODULE_INIT. Thanks Om.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7969 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDamn strict typing to hell
w00t [Tue, 28 Aug 2007 18:33:43 +0000 (18:33 +0000)]
Damn strict typing to hell

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7968 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoLast raft of compile fixes
brain [Tue, 28 Aug 2007 18:31:13 +0000 (18:31 +0000)]
Last raft of compile fixes

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7967 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoOops. We were missing a param on this SVSNICK for remote TS.. that probably was blast...
w00t [Tue, 28 Aug 2007 18:31:01 +0000 (18:31 +0000)]
Oops. We were missing a param on this SVSNICK for remote TS.. that probably was blasting client TS on nick collision, which isn't good

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7966 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFixes 2
brain [Tue, 28 Aug 2007 18:29:53 +0000 (18:29 +0000)]
Fixes 2

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7965 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFixes 1
brain [Tue, 28 Aug 2007 18:27:51 +0000 (18:27 +0000)]
Fixes 1

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7964 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoConvert yet more to ServerConfig::GetSID() - this is the last of the obvious stuff.
brain [Tue, 28 Aug 2007 18:25:36 +0000 (18:25 +0000)]
Convert yet more to ServerConfig::GetSID() - this is the last of the obvious stuff.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7963 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMake the notes on not using the two services modules at the same time bigger :P
w00t [Tue, 28 Aug 2007 18:19:57 +0000 (18:19 +0000)]
Make the notes on not using the two services modules at the same time bigger :P

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7962 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFirst round of servername->sid stuffs
brain [Tue, 28 Aug 2007 18:14:26 +0000 (18:14 +0000)]
First round of servername->sid stuffs

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7961 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoUse it here, too
brain [Tue, 28 Aug 2007 18:02:28 +0000 (18:02 +0000)]
Use it here, too

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7960 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoTidy up duplicate code, provide GetSID() method on ServerConfig which returns the...
brain [Tue, 28 Aug 2007 18:02:01 +0000 (18:02 +0000)]
Tidy up duplicate code, provide GetSID() method on ServerConfig which returns the SID always 3 digits long

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7959 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRice it up, biatch
w00t [Tue, 28 Aug 2007 17:56:41 +0000 (17:56 +0000)]
Rice it up, biatch

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7958 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoChange issid to IsSID to appease our anal retentiveness^H^H^H^H^H^H... i mean err...
brain [Tue, 28 Aug 2007 17:44:57 +0000 (17:44 +0000)]
Change issid to IsSID to appease our anal retentiveness^H^H^H^H^H^H... i mean err, match the coding standards

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7957 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd SpanningTreeUtils::issid(). See top of utils.cpp
brain [Tue, 28 Aug 2007 17:42:32 +0000 (17:42 +0000)]
Add SpanningTreeUtils::issid(). See top of utils.cpp

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7956 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDrop nick from incoming client on change collision if incoming client 'loses' the...
w00t [Tue, 28 Aug 2007 17:40:00 +0000 (17:40 +0000)]
Drop nick from incoming client on change collision if incoming client 'loses' the change, and document why we do this

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7955 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoOops: This 'remote' needs to be local, otherwise our return value can be incorrect...
w00t [Tue, 28 Aug 2007 17:34:25 +0000 (17:34 +0000)]
Oops: This 'remote' needs to be local, otherwise our return value can be incorrect in some cases.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7954 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFrom RFC 2812, the funny = that i could never identify in NAMES reply: = means public...
brain [Tue, 28 Aug 2007 16:49:49 +0000 (16:49 +0000)]
From RFC 2812, the funny = that i could never identify in NAMES reply: = means public, @ means secret and * means private.
Fixed in affected modules to display the proper character (will backport)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7952 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agobool SamePerson = strcmp(localident, remoteident) && !strcmp(localip, remoteip);
brain [Tue, 28 Aug 2007 16:23:03 +0000 (16:23 +0000)]
bool SamePerson = strcmp(localident, remoteident) && !strcmp(localip, remoteip);
change to: bool SamePerson = !strcmp(localident, remoteident) && !strcmp(localip, remoteip);

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7951 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoLong-standing bug: userrec::age should be set on remote introduction. This does not...
w00t [Tue, 28 Aug 2007 16:06:59 +0000 (16:06 +0000)]
Long-standing bug: userrec::age should be set on remote introduction. This does not affect 1.1.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7950 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoHmm. We shouldn't use FindNick here, as that will find on UID, which while it should...
w00t [Tue, 28 Aug 2007 15:35:59 +0000 (15:35 +0000)]
Hmm. We shouldn't use FindNick here, as that will find on UID, which while it should not be a problem, might be.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7949 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoSlight change to traffic logging, as I never remember which way the damn arrows go...
w00t [Tue, 28 Aug 2007 14:12:49 +0000 (14:12 +0000)]
Slight change to traffic logging, as I never remember which way the damn arrows go: I now means in, O now means out. C and S remain unchanged

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7948 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoOops: initialise fake client after UID setup, so it gets a UID. This may be unnecessa...
w00t [Tue, 28 Aug 2007 14:07:22 +0000 (14:07 +0000)]
Oops: initialise fake client after UID setup, so it gets a UID. This may be unnecessary, but I'd rather not explode things anyway.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7947 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove more unused headers
w00t [Tue, 28 Aug 2007 14:05:39 +0000 (14:05 +0000)]
Remove more unused headers

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7946 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove unneeded headers from spanningtree. This was done to the rest of the source...
w00t [Tue, 28 Aug 2007 14:02:35 +0000 (14:02 +0000)]
Remove unneeded headers from spanningtree. This was done to the rest of the source base the other day.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7945 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDocument the need for the fake client
w00t [Tue, 28 Aug 2007 13:50:04 +0000 (13:50 +0000)]
Document the need for the fake client

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7944 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove the last uses of localised fake clients. This removes a lot of allocations...
w00t [Tue, 28 Aug 2007 13:48:28 +0000 (13:48 +0000)]
Remove the last uses of localised fake clients. This removes a lot of allocations (and uses of UIDs), and cleans things up a bit

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7943 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove an utterly insane comment .. based on changed by based on originally by change...
w00t [Tue, 28 Aug 2007 13:42:03 +0000 (13:42 +0000)]
Remove an utterly insane comment .. based on changed by based on originally by changed on the based of .. wtf

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7942 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove some fake client stuff, make it use the global record
w00t [Tue, 28 Aug 2007 13:40:21 +0000 (13:40 +0000)]
Remove some fake client stuff, make it use the global record

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7941 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoConvert m_devoice to use global fake client, rather than rolling its own
w00t [Tue, 28 Aug 2007 13:24:11 +0000 (13:24 +0000)]
Convert m_devoice to use global fake client, rather than rolling its own

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7940 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoOops. This is supposed to be a public member
w00t [Tue, 28 Aug 2007 13:23:47 +0000 (13:23 +0000)]
Oops. This is supposed to be a public member

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7939 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd a global fake client to class InspIRCd used instead of instantiating a fake clien...
w00t [Tue, 28 Aug 2007 13:20:11 +0000 (13:20 +0000)]
Add a global fake client to class InspIRCd used instead of instantiating a fake client every time a mode needs to be forced through, etc

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7938 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoHandle nick change collision through the same rules nick introduction collision is...
w00t [Tue, 28 Aug 2007 13:13:57 +0000 (13:13 +0000)]
Handle nick change collision through the same rules nick introduction collision is handled. No code duplication, and now, no kills either.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7937 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMove nickname collision logic into TreeSocket::DoCollision so that nickname change...
w00t [Tue, 28 Aug 2007 13:03:14 +0000 (13:03 +0000)]
Move nickname collision logic into TreeSocket::DoCollision so that nickname change collide can be dealt with without KILL use also. Note that currently this function is rather ugly, and DOES need attention, but should work...

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7936 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMake this comment make a little more sense.
w00t [Tue, 28 Aug 2007 00:28:19 +0000 (00:28 +0000)]
Make this comment make a little more sense.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7935 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMode to protect services from /kill and hide channel list in /whois from everyone...
w00t [Tue, 28 Aug 2007 00:21:52 +0000 (00:21 +0000)]
Mode to protect services from /kill and hide channel list in /whois from everyone (opers included) - handy, and perhaps it could be extended to do other misc services related stuff so it doesn't have to be duplicated in m_serv, and _account together

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7934 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoPatche(s) to m_deaf by praetorian, allowing for certain characters to bypass deafness...
w00t [Tue, 28 Aug 2007 00:18:26 +0000 (00:18 +0000)]
Patche(s) to m_deaf by praetorian, allowing for certain characters to bypass deafness (useful for say, fantasy commands & services), plus some other things.. needs proper review really, but at 1.30am, I'm not doing that, so in it goes

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7933 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoINFO now looks much prettier than it did 5 seconds ago :o
w00t [Tue, 28 Aug 2007 00:02:26 +0000 (00:02 +0000)]
INFO now looks much prettier than it did 5 seconds ago :o

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7931 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoJust as well I added this guy, he's very useful :P
w00t [Mon, 27 Aug 2007 23:27:43 +0000 (23:27 +0000)]
Just as well I added this guy, he's very useful :P

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7930 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agodanielg -> danieldg. My apologies.
w00t [Mon, 27 Aug 2007 23:25:55 +0000 (23:25 +0000)]
danielg -> danieldg. My apologies.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7929 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd danielg and praetorian to testers list.
w00t [Mon, 27 Aug 2007 23:24:11 +0000 (23:24 +0000)]
Add danielg and praetorian to testers list.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7928 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoSimilar refactor here. Thanks danielg.
w00t [Mon, 27 Aug 2007 23:22:53 +0000 (23:22 +0000)]
Similar refactor here.  Thanks danielg.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7927 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoTidy this up a bit (it looked weird :P)
w00t [Mon, 27 Aug 2007 23:14:18 +0000 (23:14 +0000)]
Tidy this up a bit (it looked weird :P)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7926 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoWhile I'm in here, make it easier to read, and use short circuiting (IS_REMOTE is...
w00t [Mon, 27 Aug 2007 23:05:49 +0000 (23:05 +0000)]
While I'm in here, make it easier to read, and use short circuiting (IS_REMOTE is quicker than checking if the user really has access)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7925 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix potential for duplicate SID if the SID is auto generated.
brain [Mon, 27 Aug 2007 22:32:40 +0000 (22:32 +0000)]
Fix potential for duplicate SID if the SID is auto generated.
Auto generated SIDs are initialized too late after modules are loaded rather than before. Fixed.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7924 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix to use DuplicateID. This stops things segfaulting on duplicate SID introduction...
w00t [Mon, 27 Aug 2007 22:08:34 +0000 (22:08 +0000)]
Fix to use DuplicateID. This stops things segfaulting on duplicate SID introduction, which is, of course, bad.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7923 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd bool TreeSocket::DuplicateID(), as its not safe to throw then try and squit that...
brain [Mon, 27 Aug 2007 21:57:00 +0000 (21:57 +0000)]
Add bool TreeSocket::DuplicateID(), as its not safe to throw then try and squit that server :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7922 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoWell, this probably works. But it might not. :D.
w00t [Mon, 27 Aug 2007 21:31:24 +0000 (21:31 +0000)]
Well, this probably works. But it might not. :D.
- If a server is introduced with an already-existing SID, kill it off the network.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7921 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMove SID into TreeSocket constructor. w00t, search for "new TreeSocket" to see where...
brain [Mon, 27 Aug 2007 21:18:57 +0000 (21:18 +0000)]
Move SID into TreeSocket constructor. w00t, search for "new TreeSocket" to see where to catch

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7920 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoThis may need tidying up to make SetID internal and do this in the constructor, but...
brain [Mon, 27 Aug 2007 21:09:46 +0000 (21:09 +0000)]
This may need tidying up to make SetID internal and do this in the constructor, but for now it works.
AWOOGA AWOOGA WARNING: SetID can throw a CoreException if the id already exists!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7919 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoStore id in TreeServer, use TreeServer::GetID() to get the id (NOTE: it is std::string)
brain [Mon, 27 Aug 2007 20:50:07 +0000 (20:50 +0000)]
Store id in TreeServer, use TreeServer::GetID() to get the id (NOTE: it is std::string)
Server id sent on all outbound and inbound SERVER now. last parameter before desc.
Min params for SERVER is now 5, not 4.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7918 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd <server:id> - this is optional, as stated in the example conf,
brain [Mon, 27 Aug 2007 19:56:38 +0000 (19:56 +0000)]
Add <server:id> - this is optional, as stated in the example conf,
and should only be set if you are getting collisions. The comment also points out that ids where either of the last two letters are numeric are reserved for services use (e.g. 0ZZ or 5CQ)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7917 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove check for duplicate UUID, constructor of userrec throws for us instead
w00t [Mon, 27 Aug 2007 19:35:31 +0000 (19:35 +0000)]
Remove check for duplicate UUID, constructor of userrec throws for us instead

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7916 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoUpdate documentation to indicate that userrec::userrec() may throw on duplicate uuid
brain [Mon, 27 Aug 2007 19:32:07 +0000 (19:32 +0000)]
Update documentation to indicate that userrec::userrec() may throw on duplicate uuid

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7915 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoCatch exceptions here for duplicate uuid (it shouldnt happen, which is why the except...
brain [Mon, 27 Aug 2007 19:31:13 +0000 (19:31 +0000)]
Catch exceptions here for duplicate uuid (it shouldnt happen, which is why the exception message is so rediculous)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7914 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoUpdate comment to say we need to SQUIT. This is a minor thing so im not going to...
brain [Mon, 27 Aug 2007 19:23:17 +0000 (19:23 +0000)]
Update comment to say we need to SQUIT. This is a minor thing so im not going to fix it yet

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7913 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoThis comment is no longer valid
w00t [Mon, 27 Aug 2007 19:15:06 +0000 (19:15 +0000)]
This comment is no longer valid

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7912 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDocument the use of SVSNICK to fix a remote user on collide
w00t [Mon, 27 Aug 2007 19:12:22 +0000 (19:12 +0000)]
Document the use of SVSNICK to fix a remote user on collide

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7911 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoOkay. Make it compile too, and make equal TS collision work correctly.
w00t [Mon, 27 Aug 2007 19:05:26 +0000 (19:05 +0000)]
Okay. Make it compile too, and make equal TS collision work correctly.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7910 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoNickname collision: third revisitation
w00t [Mon, 27 Aug 2007 19:02:32 +0000 (19:02 +0000)]
Nickname collision: third revisitation

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7909 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoNOTICE, PRIVMSG, WHOIS; dont allow local users to /msg <uid> etc. This prevents a...
brain [Mon, 27 Aug 2007 18:30:50 +0000 (18:30 +0000)]
NOTICE, PRIVMSG, WHOIS; dont allow local users to /msg <uid> etc. This prevents a primative possible type of 'stalking' of users.
We still need to use full FindNick for remote use.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7908 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDon't try do lookups by nickname any more, all s2s traffic should be using UID now...
w00t [Mon, 27 Aug 2007 18:30:33 +0000 (18:30 +0000)]
Don't try do lookups by nickname any more, all s2s traffic should be using UID now. If it's not, well, we need to know anyway.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7907 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove some old style compatibility checking for 1.0-alpha servers, this really isn...
w00t [Mon, 27 Aug 2007 18:26:53 +0000 (18:26 +0000)]
Remove some old style compatibility checking for 1.0-alpha servers, this really isn't needed anymore, as they will ERROR off anyway with an unknown command

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7906 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agonickflood: Allow changes to UID
w00t [Mon, 27 Aug 2007 18:22:10 +0000 (18:22 +0000)]
nickflood: Allow changes to UID

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7905 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agonicklock: Allow change to a UID
w00t [Mon, 27 Aug 2007 18:21:22 +0000 (18:21 +0000)]
nicklock: Allow change to a UID

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7904 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agorestrictbanned: Allow changes to UID
w00t [Mon, 27 Aug 2007 18:18:16 +0000 (18:18 +0000)]
restrictbanned: Allow changes to UID

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7903 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agononicks: allow switches to UID, so we don't get loads of unnecessary kills on collide...
w00t [Mon, 27 Aug 2007 18:17:10 +0000 (18:17 +0000)]
nonicks: allow switches to UID, so we don't get loads of unnecessary kills on collides/svsnick

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7902 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoIf SVSNICK fails, attempt to change to UID, before quitting as a last resort (if...
w00t [Mon, 27 Aug 2007 18:15:26 +0000 (18:15 +0000)]
If SVSNICK fails, attempt to change to UID, before quitting as a last resort (if a module disallows change to a UID, they need shooting)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7901 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoTS may be a more elegant solution, but it is fucking horrible to write code for,...
w00t [Mon, 27 Aug 2007 17:43:23 +0000 (17:43 +0000)]
TS may be a more elegant solution, but it is fucking horrible to write code for, and hard to get right. Let's just change both.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7900 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoOops, forgot a branch (the logic here totally sucks, it will need cleaning up. I...
w00t [Mon, 27 Aug 2007 17:34:57 +0000 (17:34 +0000)]
Oops, forgot a branch (the logic here totally sucks, it will need cleaning up. I want to get it working first.)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7899 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoNick collision handling with TS rules. This probably doesn't work yet.
w00t [Mon, 27 Aug 2007 17:30:39 +0000 (17:30 +0000)]
Nick collision handling with TS rules. This probably doesn't work yet.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7898 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove some printfs
brain [Mon, 27 Aug 2007 16:50:28 +0000 (16:50 +0000)]
Remove some printfs

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7897 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix for problems with translations
brain [Mon, 27 Aug 2007 16:47:30 +0000 (16:47 +0000)]
Fix for problems with translations

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7896 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoDebug to try figure this out ..
w00t [Mon, 27 Aug 2007 16:39:32 +0000 (16:39 +0000)]
Debug to try figure this out ..

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7895 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd documentation comments
brain [Mon, 27 Aug 2007 16:08:21 +0000 (16:08 +0000)]
Add documentation comments

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7894 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoTranslateUIDs now correctly returns number of substitutions made
brain [Mon, 27 Aug 2007 16:06:20 +0000 (16:06 +0000)]
TranslateUIDs now correctly returns number of substitutions made

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7893 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd a metric assload of TRANSLATE macros to modules.
w00t [Mon, 27 Aug 2007 16:05:59 +0000 (16:05 +0000)]
Add a metric assload of TRANSLATE macros to modules.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7892 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoTranslation of mode parameters to uids where neccessary
brain [Mon, 27 Aug 2007 16:00:46 +0000 (16:00 +0000)]
Translation of mode parameters to uids where neccessary

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7891 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoSome useful defines for tidy definition of translation lists. See constructor of...
brain [Mon, 27 Aug 2007 15:35:14 +0000 (15:35 +0000)]
Some useful defines for tidy definition of translation lists. See constructor of cmd_cban in m_cban.cpp

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7890 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAuto translation nick->uuid for command params should now work in all modules which...
brain [Mon, 27 Aug 2007 15:27:35 +0000 (15:27 +0000)]
Auto translation nick->uuid for command params should now work in all modules which set their translation types. None do atm.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7889 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMore translation stuff
brain [Mon, 27 Aug 2007 15:14:27 +0000 (15:14 +0000)]
More translation stuff

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7888 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove more unnecessary header traffic
w00t [Mon, 27 Aug 2007 15:02:46 +0000 (15:02 +0000)]
Remove more unnecessary header traffic

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7887 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd vector<TranslationType> to commands, used to map fields to uid translations
brain [Mon, 27 Aug 2007 15:01:14 +0000 (15:01 +0000)]
Add vector<TranslationType> to commands, used to map fields to uid translations

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7886 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoRemove unnecessary header traffic
w00t [Mon, 27 Aug 2007 14:49:08 +0000 (14:49 +0000)]
Remove unnecessary header traffic

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7885 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoChanges to UID generation:
w00t [Mon, 27 Aug 2007 14:20:55 +0000 (14:20 +0000)]
Changes to UID generation:
 - Endless loop until we find a UID that is in use (this will be problematic if we get 2 billion users to a server..)
 - Once we reach the end of the UID namespace, start back at AAAA
 - Remove an unneeded allocation

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7884 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd FindNickOnly, that wont fall through to uid checks if isdigit(*first). We may...
brain [Mon, 27 Aug 2007 13:54:15 +0000 (13:54 +0000)]
Add FindNickOnly, that wont fall through to uid checks if isdigit(*first). We may need this. (i thought we did for this fix, we dont)
Fix cmd_nick to not treat all nicks as invalid and make the client give up.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7883 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoWhoops, i had a ! and i didnt need one
brain [Mon, 27 Aug 2007 13:40:12 +0000 (13:40 +0000)]
Whoops, i had a ! and i didnt need one

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7882 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFixed sigabrt
brain [Mon, 27 Aug 2007 13:36:11 +0000 (13:36 +0000)]
Fixed sigabrt
NOTE to w00t: When a user gets allocated a uid that is duplicate, the constructor throws. This was happening because i didnt pay attention to what i wrote and it always added uid "" :P

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7881 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix for bug #401 reported by DarkStorm
brain [Mon, 27 Aug 2007 12:43:47 +0000 (12:43 +0000)]
Fix for bug #401 reported by DarkStorm

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7879 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd options:maxtargets that was somehow omitted, fixes bug #400 (Reported by DarkStorm)
brain [Mon, 27 Aug 2007 12:41:25 +0000 (12:41 +0000)]
Add options:maxtargets that was somehow omitted, fixes bug #400 (Reported by DarkStorm)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7877 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd uuid hash_map - its management is automatic via userrec constructors/destructors.
brain [Mon, 27 Aug 2007 11:43:12 +0000 (11:43 +0000)]
Add uuid hash_map - its management is automatic via userrec constructors/destructors.
Note that this means 'fake' users used to set modes etc get a uid, but this isnt a major thing.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7876 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoA few tidyups, and comment how the new constructors work (so that w00t doesnt wonder...
brain [Mon, 27 Aug 2007 11:34:16 +0000 (11:34 +0000)]
A few tidyups, and comment how the new constructors work (so that w00t doesnt wonder where the feck his strlcpys went)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7875 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMore uuid fixes, and whack some warnings
brain [Mon, 27 Aug 2007 11:30:38 +0000 (11:30 +0000)]
More uuid fixes, and whack some warnings

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7874 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAllocate uid in userrec constructor. Optional param added, if its empty, the server...
brain [Mon, 27 Aug 2007 11:24:43 +0000 (11:24 +0000)]
Allocate uid in userrec constructor. Optional param added, if its empty, the server allocates one, if its not empty the user gets the one given
(this is used for remote users)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7873 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoSquash warning
brain [Mon, 27 Aug 2007 11:04:03 +0000 (11:04 +0000)]
Squash warning

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7872 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoInitialise cmd_nick::allowinvalid in constructor init-list, and document HandleIntern...
brain [Mon, 27 Aug 2007 11:03:32 +0000 (11:03 +0000)]
Initialise cmd_nick::allowinvalid in constructor init-list, and document HandleInternal (now two commands that use this, cmd_whowas and this one)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7871 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoFix obligotary typos
brain [Mon, 27 Aug 2007 11:01:20 +0000 (11:01 +0000)]
Fix obligotary typos

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7870 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoAdd a call to the NICK handler that allows toggling of allowing invalid nicks to...
brain [Mon, 27 Aug 2007 10:57:25 +0000 (10:57 +0000)]
Add a call to the NICK handler that allows toggling of allowing invalid nicks to on or off.
Use it in ForceNickChange to allow forced nickchange of a nick to a uid.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7869 e03df62e-2008-0410-955e-edbf42e46eb7

16 years agoMake nickname-overruled rules change the user back to their uid, not to nnn-unknown
brain [Mon, 27 Aug 2007 10:50:23 +0000 (10:50 +0000)]
Make nickname-overruled rules change the user back to their uid, not to nnn-unknown

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7868 e03df62e-2008-0410-955e-edbf42e46eb7