]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
17 years agoConfigReader and FileReader now take InspIRCd* to their constructors
brain [Fri, 11 Aug 2006 01:35:01 +0000 (01:35 +0000)]
ConfigReader and FileReader now take InspIRCd* to their constructors

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

17 years agoAnd fix a bug
brain [Fri, 11 Aug 2006 00:50:54 +0000 (00:50 +0000)]
And fix a bug

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

17 years agoNone of the modules use an extern InspIRCd* any more
brain [Fri, 11 Aug 2006 00:46:41 +0000 (00:46 +0000)]
None of the modules use an extern InspIRCd* any more

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

17 years ago(Bigger than it looks, i did this with perl inplace edit) -- commands now take an...
brain [Fri, 11 Aug 2006 00:15:07 +0000 (00:15 +0000)]
(Bigger than it looks, i did this with perl inplace edit) -- commands now take an InspIRCd* param to their constructor, so that you can do stuff within them without an extern

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

17 years agoLast of Server:: methods moved to InspIRCd::. Server:: removed.
brain [Thu, 10 Aug 2006 23:53:48 +0000 (23:53 +0000)]
Last of Server:: methods moved to InspIRCd::. Server:: removed.
This will need a real good tidyup later, because now everything is in the right place, but its a mess because for now i threw them into place (e.g. space indenting, etc)
Next on the todo: Make command handlers have a ServerInstance (gank!)

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

17 years agoCommitting this as a rollback point - does not compile
brain [Thu, 10 Aug 2006 23:36:53 +0000 (23:36 +0000)]
Committing this as a rollback point - does not compile

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

17 years agoNote: FOR THE MOMENT, this is BROKEN. It wont run right until im done.
brain [Thu, 10 Aug 2006 23:19:43 +0000 (23:19 +0000)]
Note: FOR THE MOMENT, this is BROKEN. It wont run right until im done.
Changed Parameter for modules from Server* to InspIRCd*.
TODO: Move remaining Server* Modules into InspIRCd* and remove class Server.

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

17 years agoSo much stuff changed in this one, i forgot most of it.
brain [Thu, 10 Aug 2006 22:40:57 +0000 (22:40 +0000)]
So much stuff changed in this one, i forgot most of it.
Oh yeah, main thing is ModeHandler and ModeWatcher classes now take an InspIRCd* to their constructor

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

17 years agoMove all_opers into class InspIRCd
brain [Thu, 10 Aug 2006 21:39:57 +0000 (21:39 +0000)]
Move all_opers into class InspIRCd

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

17 years agoMass-tidyup of module global vars, theyre no longer global vars.
brain [Thu, 10 Aug 2006 21:19:19 +0000 (21:19 +0000)]
Mass-tidyup of module global vars, theyre no longer global vars.

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

17 years agoMove tons more stuff into class InspIRCd*, make signal handler functions static members
brain [Thu, 10 Aug 2006 20:27:51 +0000 (20:27 +0000)]
Move tons more stuff into class InspIRCd*, make signal handler functions static members

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

17 years agoMake it more readable
brain [Thu, 10 Aug 2006 19:17:04 +0000 (19:17 +0000)]
Make it more readable

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

17 years agoMuch faster hash<string> for case-insensitive hashing, combined copy and lowercase...
brain [Thu, 10 Aug 2006 19:15:42 +0000 (19:15 +0000)]
Much faster hash<string> for case-insensitive hashing, combined copy and lowercase operation

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

17 years agoMove AllModulesReportReady into a private method of class InspIRCd
brain [Thu, 10 Aug 2006 18:58:21 +0000 (18:58 +0000)]
Move AllModulesReportReady into a private method of class InspIRCd

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

17 years agoMove strlower into nspace namespace where hash<std::string> lives
brain [Thu, 10 Aug 2006 18:54:29 +0000 (18:54 +0000)]
Move strlower into nspace namespace where hash<std::string> lives

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

17 years agoMove InsertMode into ModeParser
brain [Thu, 10 Aug 2006 18:43:15 +0000 (18:43 +0000)]
Move InsertMode into ModeParser

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

17 years agoMove FileExists, CleanFilename, DirValid, GetFullProgDir into class ServerConfig
brain [Thu, 10 Aug 2006 18:28:37 +0000 (18:28 +0000)]
Move FileExists, CleanFilename, DirValid, GetFullProgDir into class ServerConfig

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

17 years agoMove IsNick, IsIdent into class InspIRCd, update modules that use it.
brain [Thu, 10 Aug 2006 18:04:19 +0000 (18:04 +0000)]
Move IsNick, IsIdent into class InspIRCd, update modules that use it.
Change message.h to just a #warning saying its deprecated, and remove all use of it from the core :)

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

17 years agoPublishFeature, FindFeature, FindModule, PriorityBefore, PriorityAfter -> InspIRCd::
brain [Thu, 10 Aug 2006 17:37:25 +0000 (17:37 +0000)]
PublishFeature, FindFeature, FindModule, PriorityBefore, PriorityAfter -> InspIRCd::

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

17 years agoRemoval of Server::Log -- not much ever used it anyway with the ability to use log...
brain [Thu, 10 Aug 2006 16:56:03 +0000 (16:56 +0000)]
Removal of Server::Log -- not much ever used it anyway with the ability to use log(). log() macro still exists, and calls InspIRCd::Log()

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

17 years agoFixes and removal of Server::GetServerName()
brain [Thu, 10 Aug 2006 16:37:01 +0000 (16:37 +0000)]
Fixes and removal of Server::GetServerName()

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

17 years agoServer::GetAdmin, Server::GetServerDescription, Server::GetNetworkName --- *REMOVED*
brain [Thu, 10 Aug 2006 16:16:40 +0000 (16:16 +0000)]
Server::GetAdmin, Server::GetServerDescription, Server::GetNetworkName --- *REMOVED*

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

17 years agoUpdates to new API
om [Thu, 10 Aug 2006 16:08:50 +0000 (16:08 +0000)]
Updates to new API

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

17 years agoCast value to long instead of int, shouldn't break any sane system, fixes warning...
om [Thu, 10 Aug 2006 16:01:21 +0000 (16:01 +0000)]
Cast value to long instead of int, shouldn't break any sane system, fixes warning on 64bit systems

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

17 years agoFix to new API
om [Thu, 10 Aug 2006 16:00:03 +0000 (16:00 +0000)]
Fix to new API

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

17 years agoWhy is most of Server:: virtual?`
brain [Thu, 10 Aug 2006 15:47:26 +0000 (15:47 +0000)]
Why is most of Server:: virtual?`

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

17 years agoRemove Server::Server() and Server::~Server()
brain [Thu, 10 Aug 2006 15:45:08 +0000 (15:45 +0000)]
Remove Server::Server() and Server::~Server()

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

17 years agocmode(), cflags(), cstatus() -> chanrec::GetStatusChar(), chanrec::GetStatusFlags...
brain [Thu, 10 Aug 2006 15:44:03 +0000 (15:44 +0000)]
cmode(), cflags(), cstatus() -> chanrec::GetStatusChar(), chanrec::GetStatusFlags(), chanrec::GetStatus()

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

17 years ago#define IS_MINGW on..MinGW (*shock*)
om [Thu, 10 Aug 2006 15:28:31 +0000 (15:28 +0000)]
#define IS_MINGW on..MinGW (*shock*)

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

17 years agoDon't use -fPIC on MinGW platforms
om [Thu, 10 Aug 2006 15:06:43 +0000 (15:06 +0000)]
Don't use -fPIC on MinGW platforms

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

17 years agoAdd a few tidbits for MinGW, check for C:\ style paths as well as just beginning...
om [Thu, 10 Aug 2006 15:04:10 +0000 (15:04 +0000)]
Add a few tidbits for MinGW, check for C:\ style paths as well as just beginning with '/' when determining if a path is absolute (only check if OSTYPE = MINGW32)

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

17 years agoServer::GetConfig, Server::GetVersion -> removed
brain [Thu, 10 Aug 2006 15:02:11 +0000 (15:02 +0000)]
Server::GetConfig, Server::GetVersion -> removed

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

17 years agoFindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, GetClass...
brain [Thu, 10 Aug 2006 14:43:29 +0000 (14:43 +0000)]
FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, GetClass, WriteOpers, GetServerDescription -> into classes
ServerConfig takes InspIRCd pointer in its constructor

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

17 years agoChange to use the core perl module Cwd rather than the pwd command. Should be more...
om [Thu, 10 Aug 2006 13:46:11 +0000 (13:46 +0000)]
Change to use the core perl module Cwd rather than the pwd command. Should be more portable. (Om's bi-monthly MinGw attempt)

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

17 years agobad_alloc is thrown by reference not by value
brain [Thu, 10 Aug 2006 12:01:23 +0000 (12:01 +0000)]
bad_alloc is thrown by reference not by value

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

17 years agoAdd a default exception handler around main()
brain [Thu, 10 Aug 2006 11:59:29 +0000 (11:59 +0000)]
Add a default exception handler around main()

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

17 years agoMove the socket functions like insp_ntoa into their own namespace. They arent really...
brain [Thu, 10 Aug 2006 00:36:07 +0000 (00:36 +0000)]
Move the socket functions like insp_ntoa into their own namespace. They arent really sensible to put into a class, but namespacing them out discourages developers from directly using them without explicitly saing 'using irc::sockets::BindPorts' or whatever first. Some functions such as insp_ntoa are already 'exposed' by headers that use them so 'using irc::sockets::inet_ntoa' isnt required.

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

17 years agoRelocate timer stuff into TimerManager class
brain [Thu, 10 Aug 2006 00:02:31 +0000 (00:02 +0000)]
Relocate timer stuff into TimerManager class

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

17 years agoRemove readfile
brain [Wed, 9 Aug 2006 22:13:36 +0000 (22:13 +0000)]
Remove readfile

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

17 years agoPassing invalid instance to dns isnt a good idea
brain [Wed, 9 Aug 2006 21:50:16 +0000 (21:50 +0000)]
Passing invalid instance to dns isnt a good idea

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

17 years agoFix passing wrong instance to resolver
brain [Wed, 9 Aug 2006 20:14:26 +0000 (20:14 +0000)]
Fix passing wrong instance to resolver

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

17 years agoMove more stuff into userrec
brain [Wed, 9 Aug 2006 19:56:08 +0000 (19:56 +0000)]
Move more stuff into userrec

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

17 years agoWrong version given in check it seems. Om can review this later, but now it compiles...
brain [Wed, 9 Aug 2006 19:29:13 +0000 (19:29 +0000)]
Wrong version given in check it seems. Om can review this later, but now it compiles on my system (pgsql 8.0.8) with that special feature thats only supposed to exist on 8.4.2 onwards.... :/

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

17 years agoChange some resolver stuff.
brain [Wed, 9 Aug 2006 19:25:31 +0000 (19:25 +0000)]
Change some resolver stuff.
OM, THIS STILL WONT COMPILE! Error on the same line

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

17 years agouserrec and chanrec now have their own independent pointer back to their 'creator...
brain [Wed, 9 Aug 2006 18:55:52 +0000 (18:55 +0000)]
userrec and chanrec now have their own independent pointer back to their 'creator' InspIRCd* object, extern now longer required in channels.cpp or users.cpp

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

17 years agoMove tons more stuff into class InspIRCd
brain [Wed, 9 Aug 2006 17:52:10 +0000 (17:52 +0000)]
Move tons more stuff into class InspIRCd

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

17 years agoMove clientlist and chanlist into InspIRCd*
brain [Wed, 9 Aug 2006 16:35:24 +0000 (16:35 +0000)]
Move clientlist and chanlist into InspIRCd*

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

17 years agoMove fd_ref_table into class InspIRCd*
brain [Wed, 9 Aug 2006 15:36:51 +0000 (15:36 +0000)]
Move fd_ref_table into class InspIRCd*

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

17 years agoFixes for API changes
om [Wed, 9 Aug 2006 15:36:50 +0000 (15:36 +0000)]
Fixes for API changes

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

17 years agoFix for when we hit PgSQL 9.x that I think actually works
om [Wed, 9 Aug 2006 15:15:28 +0000 (15:15 +0000)]
Fix for when we hit PgSQL 9.x that I think actually works

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

17 years agoFix for when we hit PgSQL 9.x
om [Wed, 9 Aug 2006 15:00:06 +0000 (15:00 +0000)]
Fix for when we hit PgSQL 9.x

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

17 years agoThis wont build. :(
brain [Wed, 9 Aug 2006 14:55:18 +0000 (14:55 +0000)]
This wont build. :(
m_pgsql.cpp:1125: error: cannot convert `char*' to `PGconn*' for argument `1' to `size_t PQescapeStringConn(PGconn*, char*, const char*, size_t, int*)'

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

17 years agoMove socket_ref and module_sockets vectors/arrays into InspIRCd*. These are public...
brain [Wed, 9 Aug 2006 14:53:19 +0000 (14:53 +0000)]
Move socket_ref and module_sockets vectors/arrays into InspIRCd*. These are public members, which InspSocket can modify.
(eventually, this will be marshalled safely through some accessors). When constructing an InspSocket you must now provide
an InspIRCd* instance to 'attach' the socket to.

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

17 years agoTidy up loglevel enum (remove some C-ish defines)
brain [Wed, 9 Aug 2006 14:20:04 +0000 (14:20 +0000)]
Tidy up loglevel enum (remove some C-ish defines)
change ServerConfig to pass a pointer to 'this' to Validation etc functions

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

17 years agoRemove do_log() prototypes
brain [Wed, 9 Aug 2006 13:55:26 +0000 (13:55 +0000)]
Remove do_log() prototypes

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

17 years agodo_log -> static void InspIRCd::Log() (with vararg and std::string variants)
brain [Wed, 9 Aug 2006 13:19:41 +0000 (13:19 +0000)]
do_log -> static void InspIRCd::Log() (with vararg and std::string variants)
The #define for this still exists, but maybe should be phased out?

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

17 years agoServerConfig extern moved into class InspIRCd
brain [Wed, 9 Aug 2006 11:33:10 +0000 (11:33 +0000)]
ServerConfig extern moved into class InspIRCd

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

17 years agoGet rid of Server::GetUsers(chanrec) - a throwback to before chanrec could do this...
brain [Wed, 9 Aug 2006 10:37:42 +0000 (10:37 +0000)]
Get rid of Server::GetUsers(chanrec) - a throwback to before chanrec could do this itself
Move:
bool ChangeDisplayedHost(const char* host);
bool ChangeName(const char* gecos);
int CountChannels();
Into userrec

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

17 years agoMove Blocking/NonBlocking to socket.cpp and make inline
brain [Wed, 9 Aug 2006 10:12:34 +0000 (10:12 +0000)]
Move Blocking/NonBlocking to socket.cpp and make inline

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

17 years agocommon_channels -> userrec::SharesChannelWith()
brain [Wed, 9 Aug 2006 10:04:58 +0000 (10:04 +0000)]
common_channels -> userrec::SharesChannelWith()

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

17 years agoOops, goofed up
brain [Tue, 8 Aug 2006 22:01:55 +0000 (22:01 +0000)]
Oops, goofed up

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

17 years agoImprove Write functions, and change some stuff from char* to const char*
brain [Tue, 8 Aug 2006 21:58:21 +0000 (21:58 +0000)]
Improve Write functions, and change some stuff from char* to const char*

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

17 years agoWriteWallops() -> userrec::WriteWallops() (originates from a user, so belongs in...
brain [Tue, 8 Aug 2006 20:30:41 +0000 (20:30 +0000)]
WriteWallops() -> userrec::WriteWallops() (originates from a user, so belongs in userrec)

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

17 years agoDocument new methods
brain [Tue, 8 Aug 2006 20:12:36 +0000 (20:12 +0000)]
Document new methods

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

17 years agoWriteCommon() and WriteCommonExcept() -> userrec::WriteCommon(), userrec::WriteCommon...
brain [Tue, 8 Aug 2006 20:08:02 +0000 (20:08 +0000)]
WriteCommon() and WriteCommonExcept() -> userrec::WriteCommon(), userrec::WriteCommonExcept()
WriteCommon_NoFormat() and WriteCommonExcept_NoFormat() -> std::string variants

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

17 years agoDocument Write* methods in userrec
brain [Tue, 8 Aug 2006 19:05:31 +0000 (19:05 +0000)]
Document Write* methods in userrec

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

17 years agoWHEEEEE!!!!!
brain [Tue, 8 Aug 2006 18:59:13 +0000 (18:59 +0000)]
WHEEEEE!!!!!
All of: Write(), WriteTo(), WriteFrom(), WriteServ() are now methods of userrec.
Write_NoFormat(), WriteTo_NoFormat(), WriteFrom_NoFormat(), WriteServ_NoFormat() are now std::string-taking overloaded methods of the functions above
All modules updated to use new syntax, my fingers hurt :(

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

17 years agoComment all the new stuff
brain [Tue, 8 Aug 2006 16:47:14 +0000 (16:47 +0000)]
Comment all the new stuff

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

17 years agoTons of comments
brain [Tue, 8 Aug 2006 16:34:24 +0000 (16:34 +0000)]
Tons of comments

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

17 years agoMove whowas stuff into its own namespace, move more stuff into userrec
brain [Tue, 8 Aug 2006 16:07:25 +0000 (16:07 +0000)]
Move whowas stuff into its own namespace, move more stuff into userrec

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

17 years agoFindMatchingLocal/FindMatchingGlobal -> userrec::LocalCloneCount(), userrec::GlobalCl...
brain [Tue, 8 Aug 2006 15:51:30 +0000 (15:51 +0000)]
FindMatchingLocal/FindMatchingGlobal -> userrec::LocalCloneCount(), userrec::GlobalCloneCount()

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

17 years agouserrec::UpdateNickHash(), userrec::ForceNickChange(), userrec::FullConnect()
brain [Tue, 8 Aug 2006 15:38:59 +0000 (15:38 +0000)]
userrec::UpdateNickHash(), userrec::ForceNickChange(), userrec::FullConnect()

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

17 years agoAddOper() and DeleteOper() -> userrec::Oper() and userrec::UnOper() (these do more...
brain [Tue, 8 Aug 2006 15:05:49 +0000 (15:05 +0000)]
AddOper() and DeleteOper() -> userrec::Oper() and userrec::UnOper() (these do more, too)

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

17 years agouserrec::AddToWhoWas() fix
brain [Tue, 8 Aug 2006 14:45:06 +0000 (14:45 +0000)]
userrec::AddToWhoWas() fix

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

17 years agoAddWhoWas(userrec) -> userrec::AddToWhoWas()
brain [Tue, 8 Aug 2006 14:40:53 +0000 (14:40 +0000)]
AddWhoWas(userrec) -> userrec::AddToWhoWas()

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

17 years agokill_link() and Server::QuitUser() -> userrec::QuitUser() (static member) - this...
brain [Tue, 8 Aug 2006 14:38:24 +0000 (14:38 +0000)]
kill_link() and Server::QuitUser() -> userrec::QuitUser() (static member) - this cant be a normal member as it causes the userrec to be deleted, and "delete this" is bad, mmm'k

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

17 years agoWriteChannel* functions and ChanExceptSender* functions are now methods of chanrec...
brain [Tue, 8 Aug 2006 14:17:35 +0000 (14:17 +0000)]
WriteChannel* functions and ChanExceptSender* functions are now methods of chanrec. They probably should be renamed too eventually.

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

17 years agoadd_channel -> chanrec::JoinUser()
brain [Tue, 8 Aug 2006 13:22:30 +0000 (13:22 +0000)]
add_channel -> chanrec::JoinUser()

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

17 years agoChange to chanrec::PartUser. As with KickUser and ServerKickUser, returns the number...
brain [Tue, 8 Aug 2006 12:52:24 +0000 (12:52 +0000)]
Change to chanrec::PartUser. As with KickUser and ServerKickUser, returns the number of users left, if it returns 0, delete the chanrec

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

17 years agoCheck return values
brain [Tue, 8 Aug 2006 12:24:41 +0000 (12:24 +0000)]
Check return values

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

17 years agochanrec::KickUser and chanrec::ServerKickUser return number of users left on the...
brain [Tue, 8 Aug 2006 12:22:21 +0000 (12:22 +0000)]
chanrec::KickUser and chanrec::ServerKickUser return number of users left on the channel after the kick. If either returns 0, you should delete the chanrec immediately after return:
if (!c->KickUser(mysrc, mydest, "DIE"))
    /* arse */
    delete c;

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

17 years agokick_channel -> chanrec::KickUser(), server_kick_channel -> chanrec::ServerKickUser()
brain [Tue, 8 Aug 2006 12:20:45 +0000 (12:20 +0000)]
kick_channel -> chanrec::KickUser(), server_kick_channel -> chanrec::ServerKickUser()

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

17 years agoAdd checking on AddFd that was missing (it assumed, like everything else)
brain [Tue, 8 Aug 2006 09:35:06 +0000 (09:35 +0000)]
Add checking on AddFd that was missing (it assumed, like everything else)

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

17 years agoExtra checking that the fd's we pass to SocketEngine::AddFd were added (a lot of...
brain [Tue, 8 Aug 2006 09:32:57 +0000 (09:32 +0000)]
Extra checking that the fd's we pass to SocketEngine::AddFd were added (a lot of assuming was going off, leading to total chaos if we run out of fd's etc)

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

17 years agoOnly local users can have angry monkeys and packs of wild dogs. These are local monke...
brain [Mon, 7 Aug 2006 22:14:34 +0000 (22:14 +0000)]
Only local users can have angry monkeys and packs of wild dogs. These are local monkeys for local people!

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

17 years agoNow with added ANGRY MONKEYS.
brain [Mon, 7 Aug 2006 22:09:17 +0000 (22:09 +0000)]
Now with added ANGRY MONKEYS.

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

17 years agoChange the error message, just for LeaChim <3
brain [Mon, 7 Aug 2006 21:53:09 +0000 (21:53 +0000)]
Change the error message, just for LeaChim <3

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

17 years agoCheck earlier on is no longer required
brain [Mon, 7 Aug 2006 21:29:46 +0000 (21:29 +0000)]
Check earlier on is no longer required

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

17 years agoBail if we couldn't bind any ports (when did this get broken?)
brain [Mon, 7 Aug 2006 21:25:48 +0000 (21:25 +0000)]
Bail if we couldn't bind any ports (when did this get broken?)

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

17 years agoPut casts back :(
brain [Mon, 7 Aug 2006 20:57:13 +0000 (20:57 +0000)]
Put casts back :(

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

17 years agoThe segfaults on missing init_module symbol are now gone, and hopefully not coming...
brain [Mon, 7 Aug 2006 20:42:18 +0000 (20:42 +0000)]
The segfaults on missing init_module symbol are now gone, and hopefully not coming back!

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

17 years agoChange symbol back
brain [Mon, 7 Aug 2006 20:14:03 +0000 (20:14 +0000)]
Change symbol back

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

17 years agoAdded some hax :( to prevent invalid symbols. It seems that instead of returning...
brain [Mon, 7 Aug 2006 20:12:24 +0000 (20:12 +0000)]
Added some hax :( to prevent invalid symbols. It seems that instead of returning NULL, its setting a pointer to -1

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

17 years agoTidy up, make a lot of char*'s const
brain [Mon, 7 Aug 2006 17:17:06 +0000 (17:17 +0000)]
Tidy up, make a lot of char*'s const

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

17 years agoBetter checks for running out of disk space, inability to write to tmp dir, etc
brain [Mon, 7 Aug 2006 16:58:27 +0000 (16:58 +0000)]
Better checks for running out of disk space, inability to write to tmp dir, etc

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

17 years agoExtra debug all over the place, which maybe we should keep
brain [Mon, 7 Aug 2006 13:33:34 +0000 (13:33 +0000)]
Extra debug all over the place, which maybe we should keep

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

17 years agoUntested but compiling updates for Resolver DNS API
om [Mon, 7 Aug 2006 12:57:26 +0000 (12:57 +0000)]
Untested but compiling updates for Resolver DNS API

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

17 years agoGeneral cleanup of code., add support for +Q channel mode (and config tag <remove...
om [Mon, 7 Aug 2006 12:56:36 +0000 (12:56 +0000)]
General cleanup of code., add support for +Q channel mode (and config tag <remove:supportnokicks>)

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

17 years agoChange prototype of OneOfMatches
brain [Mon, 7 Aug 2006 12:00:27 +0000 (12:00 +0000)]
Change prototype of OneOfMatches

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

17 years agoAdd m_tline, tests how many users a gline, zline etc would match. Can use this before...
brain [Mon, 7 Aug 2006 11:55:40 +0000 (11:55 +0000)]
Add m_tline, tests how many users a gline, zline etc would match. Can use this before adding one if youre not sure, or youre just curious

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