]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
brain [Fri, 11 Aug 2006 12:28:57 +0000 (12:28 +0000)]
Fix FOREACH_MOD macros
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4881
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 12:26:07 +0000 (12:26 +0000)]
Change to using Instance->Log (InspIRCd::Log) rather than log() macro
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 12:15:03 +0000 (12:15 +0000)]
Now two types of log macro, log() and ilog(). log() assumes an InspIRCd object called ServerInstance, ilog() takes an InspIRCd object as first param.
TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 11:06:40 +0000 (11:06 +0000)]
Move all of the xline stuff into class XLineManager, make an instance of it in class InspIRCd and use it
(eliminates another extern)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4878
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 10:40:48 +0000 (10:40 +0000)]
Move ReadBuffer into InspIRCd class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4877
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 09:50:16 +0000 (09:50 +0000)]
Move whowas into InspIRCd
Tidy up lowermap extern (for now, we cant do much but have this as extern)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4876
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 09:39:48 +0000 (09:39 +0000)]
Removal of an extern
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4875
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 09:28:31 +0000 (09:28 +0000)]
Change to use InspIRCd::Time()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4874
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 09:23:46 +0000 (09:23 +0000)]
extern time_t TIME -> InspIRCd::Time()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4873
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 11 Aug 2006 09:08:23 +0000 (09:08 +0000)]
New API update
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4872
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 11 Aug 2006 09:06:03 +0000 (09:06 +0000)]
New API update
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4871
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 11 Aug 2006 08:58:36 +0000 (08:58 +0000)]
New API update
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4870
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 08:37:15 +0000 (08:37 +0000)]
Use pcre-config to detect pcre
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4869
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 08:21:54 +0000 (08:21 +0000)]
Somehow, i'd cp'd all these and was making local changes :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4868
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 11 Aug 2006 07:53:28 +0000 (07:53 +0000)]
Updates to new API and small cleanup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4867
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 11 Aug 2006 01:39:21 +0000 (01:39 +0000)]
commands.cpp:extern InspIRCd* ServerInstance;
helperfuncs.cpp: extern InspIRCd* ServerInstance;
xline.cpp:extern InspIRCd* ServerInstance;
The last 3 extern's in the entire program!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4866
e03df62e -2008-0410-955e-
edbf42e46eb7
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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