]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
special [Thu, 13 Sep 2007 15:45:55 +0000 (15:45 +0000)]
Fixed a compile error in m_ident on ipv6
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8037
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Thu, 13 Sep 2007 15:34:43 +0000 (15:34 +0000)]
Made m_ident bind ident requests to the same IP the user is connected on, which is much more sane and should fix IPv6. Bug #406
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8035
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Thu, 13 Sep 2007 14:55:21 +0000 (14:55 +0000)]
Redesigned m_rpc_json to work properly in a modular environment, and added the beginnings of a framework-inspecific RPC interface for modules. Be warned, this WILL change some - this can be considered an alpha :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8033
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Thu, 13 Sep 2007 11:54:24 +0000 (11:54 +0000)]
Fixed a rare infinite loop in InspSocket::FlushWriteBuffer() - this could only affect a few rarely used modules, and is difficult to trigger.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8031
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Thu, 13 Sep 2007 10:32:37 +0000 (10:32 +0000)]
Made m_blockcaps' <blockcaps:minlen> parameter default to 1, not 0, since trying to block an empty line makes no sense
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8029
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Wed, 12 Sep 2007 11:07:50 +0000 (11:07 +0000)]
Modified m_cloaking to not use need_positive (instead, cast to an unsigned int). This allows it to use all possible values for an unsigned int, instead of just the positive values in a signed int
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8026
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Wed, 12 Sep 2007 11:06:36 +0000 (11:06 +0000)]
Renamed the needs_unsigned parameter of ConfigReader::ReadInteger to need_positive to better reflect what it does
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8025
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Tue, 11 Sep 2007 02:55:44 +0000 (02:55 +0000)]
Fixed the order of signon/signoff messages in m_watch (bug #410)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8023
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Sat, 8 Sep 2007 00:27:09 +0000 (00:27 +0000)]
Forward port r8021: fixes bug #408 reported and patched by Switch
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8022
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Wed, 5 Sep 2007 03:30:57 +0000 (03:30 +0000)]
Fixed IPv6 resolving on big-endian machines (bug #403). Patch by Stric.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8019
e03df62e -2008-0410-955e-
edbf42e46eb7
burlex [Tue, 4 Sep 2007 13:17:38 +0000 (13:17 +0000)]
* Fixed connection messages in ModuleSpanningTree::HandleConnect (reported by HiroP)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8017
e03df62e -2008-0410-955e-
edbf42e46eb7
burlex [Tue, 4 Sep 2007 12:36:05 +0000 (12:36 +0000)]
* Fixed some incorrect declarations in IOCPEngine
* Fixed the virtual socket wrapper functions in IOCPEngine {these should really be inlined on unix}
* Fixed several compilation issues under Win32
* Fixed calls to close() which should've been changed to SE->Close()
+ Added a crashdump saving system to Win32 builds. Dumps are saved in the format of dump-<exename>-<year>-<month>-<day>-<hour>-<minute>-<second>.dmp in the working directory. Enabled by default, undefine ENABLE_CRASHDUMPS to disable.
+ Added m_operflood, this is a module I've had lying around for some time but some users may like it as it allows unreal-like behaviour without increasing flood limits for non-opers.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8015
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Sun, 2 Sep 2007 05:33:10 +0000 (05:33 +0000)]
Fixed an issue that could cause empty parameters in module commands to not be sent to other servers properly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8012
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Sun, 2 Sep 2007 05:16:08 +0000 (05:16 +0000)]
Completely rewrote m_ident; the old one was written long ago and had a history of being very buggy (and still had quite a few bugs)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8009
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Fri, 31 Aug 2007 19:39:49 +0000 (19:39 +0000)]
Unbreak the compile.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8008
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Fri, 31 Aug 2007 19:37:22 +0000 (19:37 +0000)]
This may not compile, I'll test it on my desktop. Waiting 20 minutes for a build is unacceptable.
- Move UUID initialisation to InspIRCd::InitialiseUID()
- Call it if we run out of existing UUIDs
- Call it on startup
Just a small cleanup.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8007
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Fri, 31 Aug 2007 07:42:09 +0000 (07:42 +0000)]
Fixed a double free in m_ident. Found by AnMaster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8005
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Fri, 31 Aug 2007 01:11:58 +0000 (01:11 +0000)]
Fixed a bug introduced in r7827 (does not affect 1.1.12) that would cause an infinite loop for some spanningtree link errors. Found by danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8003
e03df62e -2008-0410-955e-
edbf42e46eb7
peavey [Wed, 29 Aug 2007 21:38:42 +0000 (21:38 +0000)]
I lose for being slow. also tidyup a bit, still needs to fix that sizeof..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8001
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Wed, 29 Aug 2007 21:36:14 +0000 (21:36 +0000)]
Hah, I win *hide*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8000
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Wed, 29 Aug 2007 21:35:52 +0000 (21:35 +0000)]
Reformat this pointlessly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7999
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 29 Aug 2007 21:35:03 +0000 (21:35 +0000)]
Add a pointless WriteOpers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7998
e03df62e -2008-0410-955e-
edbf42e46eb7
peavey [Wed, 29 Aug 2007 21:23:58 +0000 (21:23 +0000)]
Add name.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7995
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 29 Aug 2007 21:09:39 +0000 (21:09 +0000)]
Add duplicate UID error in ParseUID(), seems pippijn was triggering it and it was falling through the empty catch into _new = NULL :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7994
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 29 Aug 2007 20:31:52 +0000 (20:31 +0000)]
Make IsSID completely strict: Must be [digit][A-Zdigit][A-Zdigit], nothing else.
Use it to sanity check SID given on link
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7993
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 29 Aug 2007 19:59:42 +0000 (19:59 +0000)]
This needs to be sent in burst too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7992
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 29 Aug 2007 19:55:54 +0000 (19:55 +0000)]
Some modules forgotten for conversion to ModuleManager
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7991
e03df62e -2008-0410-955e-
edbf42e46eb7
peavey [Wed, 29 Aug 2007 19:55:18 +0000 (19:55 +0000)]
Fix to compile with new module api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7990
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 29 Aug 2007 19:46:22 +0000 (19:46 +0000)]
We really should SEND it too, if we're looking for it... :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7989
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 29 Aug 2007 19:45:03 +0000 (19:45 +0000)]
IMPORTANT: UID command now takes TEN parameters in 1.2. We never had a signon time seperate from the TS in the UID command (or 1.1's NICK command) because in 1.1 this timestamp never updated
and was therefore useful for both values. This is no longer the case and we must pass both seperately
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7988
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 29 Aug 2007 18:07:10 +0000 (18:07 +0000)]
Swap around ERROR and SNONOTICE in SendError() so that the server doesnt try and send SNONOTICE to a connection that just closed on it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7987
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Wed, 29 Aug 2007 09:45:20 +0000 (09:45 +0000)]
A few more minor cleanups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7986
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Tue, 28 Aug 2007 23:32:41 +0000 (23:32 +0000)]
Move everything module-related out of InspIRCd and into ModuleManager, there is a ModuleManager instantiated as InspIRCd::Modules. Several of the function names have changed slightly as well. e.g. Instance->FindModule(m_foobar.so); is now Instance->Modules->Find(m_foobar.so);
All modules in the core distribution should also be updated in line with these changes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7985
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 28 Aug 2007 21:48:56 +0000 (21:48 +0000)]
Tidy up here, same tidyup cannot go back to stable as it involves uids
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7984
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 28 Aug 2007 21:44:10 +0000 (21:44 +0000)]
Add SVSPART at request of the Anope team - You can tell if the server has SVSPART by the presence of SVSPART=1 in the CAPAB.
No, we will NOT be enforcing this network-wide, its a server-origin command so it wont cause disconnects if it doesnt exist somewhere.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7982
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 28 Aug 2007 20:34:26 +0000 (20:34 +0000)]
If we see a NICK message without a timestamp on it, squit the server
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7980
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 28 Aug 2007 20:30:59 +0000 (20:30 +0000)]
Remove unneeded debug from previous tests
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7979
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 28 Aug 2007 20:27:16 +0000 (20:27 +0000)]
If the user's nick is just a case change, the TS is NOT updated (thanks jilles)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7978
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 28 Aug 2007 20:21:27 +0000 (20:21 +0000)]
Note: NICK now takes two params, a nickname and a timestamp of the change.
When a nick change occurs this must update the users timestamp, so that the users nick is marked to a newer TS.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7977
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 28 Aug 2007 19:46:54 +0000 (19:46 +0000)]
When a server sends a SERVER command with <5 params, dont just close the connection without error. Give the error "Protocol violation -- Missing SID"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7974
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Tue, 28 Aug 2007 19:27:19 +0000 (19:27 +0000)]
DELETE() -> delete
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7973
e03df62e -2008-0410-955e-
edbf42e46eb7
w00t [Tue, 28 Aug 2007 19:06:15 +0000 (19:06 +0000)]
(Om, this commit is safe): remove references to DELETE() macro, revert back to delete. Nobody used this most of the time, it had no real purpose, etc.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7972
e03df62e -2008-0410-955e-
edbf42e46eb7
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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