brain
7de28b5b35
Document new methods
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4801 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 20:12:36 +00:00
brain
a318eee150
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
2006-08-08 20:08:02 +00:00
brain
d54f233a5e
Document Write* methods in userrec
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4799 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 19:05:31 +00:00
brain
fea1a27cb9
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
2006-08-08 18:59:13 +00:00
brain
a7543c881b
Comment all the new stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4797 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 16:47:14 +00:00
brain
861ca7f2fe
Tons of comments
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4796 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 16:34:24 +00:00
brain
c18d1040a3
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
2006-08-08 16:07:25 +00:00
brain
4f1d3a7192
FindMatchingLocal/FindMatchingGlobal -> userrec::LocalCloneCount(), userrec::GlobalCloneCount()
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4794 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 15:51:30 +00:00
brain
922d4ebf7a
userrec::UpdateNickHash(), userrec::ForceNickChange(), userrec::FullConnect()
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4793 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 15:38:59 +00:00
brain
8d99003c22
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
2006-08-08 15:05:49 +00:00
brain
8c4528880a
userrec::AddToWhoWas() fix
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4791 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 14:45:06 +00:00
brain
ce4c050657
AddWhoWas(userrec) -> userrec::AddToWhoWas()
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4790 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 14:40:53 +00:00
brain
93876363f8
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
2006-08-08 14:38:24 +00:00
brain
6ab1d0dffb
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
2006-08-08 14:17:35 +00:00
brain
903ba4e2eb
add_channel -> chanrec::JoinUser()
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4787 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 13:22:30 +00:00
brain
6f1b8f50dd
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
2006-08-08 12:52:24 +00:00
brain
7a3907f051
Check return values
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4784 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08 12:24:41 +00:00
brain
f82cc8dd39
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
2006-08-08 12:22:21 +00:00
brain
25f6cb0fe6
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
2006-08-08 12:20:45 +00:00
brain
3c5d62d3b3
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
2006-08-08 09:35:06 +00:00
brain
2329d59b09
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
2006-08-08 09:32:57 +00:00
brain
3794888ebf
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
2006-08-07 22:14:34 +00:00
brain
6353036b7c
Now with added ANGRY MONKEYS.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4777 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07 22:09:17 +00:00
brain
88a34791f0
Change the error message, just for LeaChim <3
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4776 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07 21:53:09 +00:00
brain
847830b43e
Check earlier on is no longer required
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4775 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07 21:29:46 +00:00
brain
358f2064c4
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
2006-08-07 21:25:48 +00:00
brain
923586e54c
Put casts back :(
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4773 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07 20:57:13 +00:00
brain
233402b05c
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
2006-08-07 20:42:18 +00:00
brain
7548a18e4c
Change symbol back
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4771 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07 20:14:03 +00:00
brain
1ff199172d
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
2006-08-07 20:12:24 +00:00
brain
8a21bfcb21
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
2006-08-07 17:17:06 +00:00
brain
6fa35bdb18
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
2006-08-07 16:58:27 +00:00
brain
3719db12e6
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
2006-08-07 13:33:34 +00:00
om
444c76ddcc
Untested but compiling updates for Resolver DNS API
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4766 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07 12:57:26 +00:00
om
9d6c31ba65
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
2006-08-07 12:56:36 +00:00
brain
40d465542f
Change prototype of OneOfMatches
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4764 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07 12:00:27 +00:00
brain
266ed4236f
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
2006-08-07 11:55:40 +00:00
brain
2d871a23fe
Remove dependent commands BEFORE deleting the Module*, otherwise things go tits over arse
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4761 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07 11:53:21 +00:00
brain
2efc090cbd
Remove old debug
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4760 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-07 00:03:18 +00:00
brain
db1ab20263
Remove trailing spaces from input in irc::ircsepstream
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4759 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 23:38:58 +00:00
brain
7f86f53bbf
Left nick out of the cidr/ip check in bans/join, would never match
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4758 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 23:16:25 +00:00
brain
7d617f48c4
Fix for ipv6 build
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4757 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 22:50:19 +00:00
brain
4262bac4f1
return statement in wrong place caused modes to be dropped
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4756 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 22:27:14 +00:00
om
94eb487064
Give a full path to .gdbargs, should let you run the ./inspircd script from outside the install dir (from this point of view, anyway
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4755 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 22:26:18 +00:00
om
329a7ed858
Install .gdbargs with ./inspircd
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4753 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 22:17:37 +00:00
brain
28c4961290
Syntax notice on bad commandline
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4752 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 22:00:08 +00:00
brain
6c657e45fd
Add -notraceback startup option, disables automatic backtrace facility so that you can do it yourself with a coredump and gdb (auto backtrace doesnt dump cores)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4751 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 21:55:01 +00:00
brain
552be206b2
Remove check that very rarely equates to true
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4750 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 21:44:55 +00:00
brain
55cf774593
Change to strrchr when looking for '/'. faster
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4749 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 21:37:26 +00:00
brain
afb5e20d25
Tidy up comments
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4748 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06 21:03:41 +00:00