7671 Commits

Author SHA1 Message Date
brain
43d1577839 Port bindings for gnutls now bind via ip:port, rather than on all ports for that ip, fixes feature request for roadmap. NOTE, this still needs doing for the openssl module!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9188 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 16:03:39 +00:00
brain
343f12b9b2 Add stuff so that modules can hook users by altering a pointer in the User class. Note that ssl modules still bind by port, but the idea of doing this change is so we can remove that logic next
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9187 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 15:13:17 +00:00
brain
638381c529 And more of them
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9186 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 13:41:25 +00:00
brain
c2957516bc Finally change all the Version() objects
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9185 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 13:40:12 +00:00
brain
f8e07df6d6 Wheeeeee
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9184 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 13:35:49 +00:00
brain
f3a4635b71 CAP TLS now implemented, this needs someone to make a client to test it :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9183 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-23 22:57:27 +00:00
aquanight
fb958dd6e4 Clean up user/chan modes on deoper, fix memsets off-by-1, delete[] properly in destructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9182 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-23 21:36:16 +00:00
brain
8727da5903 These memsets cant rely on sizeof() any more, afaik. The sizeof() would give 4 or 8, size of the pointer :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9181 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-23 21:20:36 +00:00
brain
1f30a3496f Whoops, take out some foolish memsets (well theyre foolish now :p)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9180 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-23 21:18:32 +00:00
brain
20680f9c49 This should save 128 bytes per user for non-opers. Well worth it imho for a reasonably large amount of unused ram.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9179 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-23 21:12:36 +00:00
brain
029e804945 Document aquanight's new stuff :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9178 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-23 21:04:01 +00:00
aquanight
d6100a5221 Fix configure -svnupdate not bailing if conflicts occur.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9177 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-23 20:46:10 +00:00
aquanight
743c10e4ca Add ability to control what opertypes can set what operonly user/chan modes. This works the same way as commands, in that modes allowed by classes are added together, and * allows all.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9176 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-23 20:43:35 +00:00
brain
68730d4c97 Wheeee for HUGE commits. Convert all numerics to WriteNumeric so that OnNumeric can capture them.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9175 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22 12:03:43 +00:00
brain
9ee525bec5 Add WriteNumeric() to User and OnNumeric module event. Note that modules do not change the numeric text on the fly, as this involves needless allocations for numerics that arent being changed, so instead they block the original numeric and send out their own when needed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9174 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22 11:45:57 +00:00
brain
bec3231f00 Fix memory leak if user quits in the middle of sasl AUTHENTICATE steps
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9173 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22 02:05:51 +00:00
brain
f14fe0c726 Add abort fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9172 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22 01:59:01 +00:00
brain
0ab6b96ca7 This works now! (well im sure we'll find something else broken) -- thanks nenolod :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9171 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22 01:37:55 +00:00
brain
287af799be Fix for compile error
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9170 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22 00:14:53 +00:00
brain
8f087b76e0 'AUTHENTICATE C'? Why not authenticate C++ :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9169 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22 00:13:18 +00:00
brain
96e1769b33 Patch for IAL abort sequence from nenolod
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9168 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22 00:09:03 +00:00
brain
0471d95aa8 Removal of server prefix from AUTHENTICATE reply, patch courtesy of nenolod
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9167 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21 23:51:02 +00:00
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