7899 Commits

Author SHA1 Message Date
brain
1428fd4f61 Patch from nenolod
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9166 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 23:43:09 +00:00
brain
6b7eb8136b Add debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9165 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 23:33:39 +00:00
brain
82d7d838a8 Fix recommended by nenolod, silly mistake apparently :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9164 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 23:27:45 +00:00
brain
0eb86fcf73 Sasl stuff from nenolod, with a bit of luck this is closer to the charybdis implementation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9163 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 23:24:19 +00:00
brain
ccd95e668a Only valid targets for encap are now server ids
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9162 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 23:07:33 +00:00
brain
8d4d9b709d Fix encap bug, when a target is wildcard we shouldnt abort propogating
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9161 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 22:41:38 +00:00
brain
d94c99d4ff That stuff belongs in OnPostconnect or it will be sent too early
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9160 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 21:03:39 +00:00
brain
264ed0db99 When a user registers and SASL has given them accountname metadata push this metadata out on registration.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9159 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 21:01:56 +00:00
brain
e81ba398ab Add return value
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9158 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 20:55:07 +00:00
brain
8793de7773 Add 906, sasl aborted
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9157 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 20:54:46 +00:00
brain
5c8964c355 Don't send 'sasl successful' numeric on re-identifications after registration
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9156 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 20:28:11 +00:00
brain
92bf908bca Rejig numerics to not step on the 90x range for SASL
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9155 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 20:26:35 +00:00
brain
c798703113 If the user hasnt sent CAP REQ sasl, do nothing if AUTHENTICATE is sent by that user
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9154 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 20:24:15 +00:00
brain
cd8d817ac4 Generate warning if m_services_account.so and m_cap.so are not loaded with m_sasl.so to log file. Tidy up debug output.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9153 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 20:22:26 +00:00
brain
ab5858c141 Forgot to commit this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9152 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 20:12:37 +00:00
brain
fe17fee46f Whoops, forgot to tie ENCAP into receiver in treesocket
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9151 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 20:04:46 +00:00
brain
34bb0fb31f This seems to play nice now, but it seems we may have to redo it all AGAIN :(
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9150 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 19:58:49 +00:00
brain
dde67b9765 Add capability for m_services_account to broadcast login events, with the user who is logging in and their login name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9149 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 19:42:08 +00:00
brain
e541d87034 Patch to change MODULES numerics, so we dont get a collision when using AUTHENTICATE. Thanks nenolod.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9148 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 19:31:42 +00:00
brain
0fc89abe46 Not finished yet. currently, this passes AUTHENTICATE messages to and from services and a client using ENCAP, and makes itself available via CAP
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9147 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 19:30:50 +00:00
brain
991a893b5d ENCAP stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9146 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 18:52:54 +00:00
brain
6f566e0a32 Add support for CAP in uhnames, it has the token 'userhost-in-names'. Comments welcome.
Add a function to m_cap.h, "GenericCapHandler" which allows a one-line definition of a CAP token that just adds a metadata tag, as used by NAMESX and UHNAMES. Saves code duplication.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9145 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 16:23:55 +00:00
brain
f6b8a12a80 Convert to new api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9144 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 16:17:03 +00:00
brain
b4d1587b44 convert to new api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9143 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 16:12:07 +00:00
brain
28e1c43de5 Remove Prioritize(), no longer needed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9142 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 16:09:14 +00:00
brain
c2177fef5e Make m_auditorium use the new api (this is MUCH easier to understand)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9141 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 16:08:39 +00:00
brain
9855300460 Add support for OnNamesListItem, discussed with w00t a few days ago. This makes NAMESX etc a LOT cleaner and safer.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9140 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 15:54:15 +00:00
peavey
6cfed50a53 Ricer up AllModulesReportReady further. If one fails, all fail, so returning false on first fail will save subsequent reduntant calls.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9138 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19 14:56:45 +00:00
peavey
95a3d0c080 And one more tweak to this.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9137 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19 01:35:11 +00:00
peavey
aaf49d5802 Fix OnUserRegister() not getting called for if USER sent before NICK on registration.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9136 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19 01:33:42 +00:00
peavey
9663a627bb Final tweak to AllModulesReportReady, should be there now.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9134 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19 01:22:36 +00:00
brain
625b14a83c Nak vector thing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9133 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19 00:35:16 +00:00
brain
0233c31289 Damnit, its right now. im going to bed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9131 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19 00:25:25 +00:00
brain
6d05c35ac8 Whoops, and dont get the comparison backwards. dont look at me like that, its almost 3am :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9130 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19 00:23:51 +00:00
brain
26057b119f Silly silly, AllModulesReportReady returns true when ONE module reports ready. Fixed here :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9128 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19 00:19:29 +00:00
brain
e1834aa932 oh, DOH
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9127 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-18 23:58:16 +00:00
brain
525eeb51a5 Crash fixes from nenolod
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9126 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-18 23:54:33 +00:00
brain
9a2481ebf1 Add support for CAP to this via multi-prefix. NOTE, the OnNamesList for this and others want refactoring, because theyre craq. Ask me sometime about the new way we have in mind for this.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9125 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-18 23:32:58 +00:00
brain
93425ec211 Apply CAP ACK/NAK stuff from nenolod, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9124 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-18 22:56:05 +00:00
brain
90c5531101 Merge in patch by nenolod for CAP CLEAR
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9123 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-18 22:11:41 +00:00
brain
dbcdd42b5b Implement CAP LIST
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9122 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-18 20:31:23 +00:00
brain
83137d5f92 Support CAP LS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9121 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-18 20:24:45 +00:00
brain
30b88d03f9 Add m_cap.* stuff, unfinished. Thanks for the initial advice nenolod :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9120 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-18 20:18:16 +00:00
peavey
cf8c8a0c58 Add logging for static callback messages/errors from the database.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9119 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-18 01:32:09 +00:00
peavey
3765c69125 Its better to have asserted and failed, than not to fail at all according to tds. Fix assertion error on DB down.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9118 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-17 22:25:21 +00:00
brain
43a376fd68 Fix the warnings that are worth fixing, ignore the rest of gcc's nannying
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9117 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-17 17:28:54 +00:00
brain
ab4e56b784 Translate std::string, irc::string and std::deque to more readable forms in error messages. I'll do others as need be and as i notice them.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9116 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-17 17:02:47 +00:00
peavey
e7a7bc7bd2 Add MsSQL schema for sql oper.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9115 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-16 22:53:20 +00:00
peavey
e16f90eb32 Add MsSQL schema for sql log.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9114 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-16 22:48:51 +00:00
peavey
b40bd0f7ab and no ssl in here.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9113 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-16 22:15:50 +00:00