7899 Commits

Author SHA1 Message Date
w00t
6c31213a38 More docs on data structures
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9226 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:47:29 +00:00
brain
dcc778ed46 Fixy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9225 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:39:14 +00:00
w00t
3e2ef1c9ff Change this return type to int from void. WHY didn't this error for me.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9224 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:32:44 +00:00
w00t
e2f4bf3a13 Merge OnCancelAway and OnSetAway, add param awaymsg to OnSetAway (blank when cancelling), and change return type to int so modules can block away messages by returning nonzero.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9223 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:26:01 +00:00
brain
d65f2c3825 Whack format warning, do these differ between gcc versions or something?!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9222 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:23:17 +00:00
peavey
07b73575c5 document override in operjoin.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9220 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 10:51:39 +00:00
peavey
0b1775f8cf Add override option to operjoin, handy if your operchan has a key or is invite only.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9219 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 10:48:26 +00:00
peavey
38c8b9290e whack a couple of format warnings now showing with r9217
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9218 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 10:19:10 +00:00
aquanight
58385dd458 Commit -Wformat=2 -Wmissing-format-attributes, printf-like functions in inspircd now get treated like printf (meaning compile-time check goodness) in GCC
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9217 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 02:48:54 +00:00
brain
bca70575cb The bug we fixed for bug #506 may still occur in trunk if a module adjusts the nick and prefix output in the same way via OnNamesListItem, so we really should apply a similar fix here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9216 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 02:39:38 +00:00
brain
1e7813c422 Test commit. .coders now has CIA (instant notification) and the other channels that need to be informed when its available on the public svn get PostBot.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9215 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-29 20:26:35 +00:00
brain
30582573b8 Unknown as to if the old code works
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9213 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-29 20:16:09 +00:00
brain
9ee32de0a2 Document
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9212 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-29 18:33:08 +00:00
brain
2bb784a346 Add support for <sqloper:hash> value, references 'md5', 'sha256' and finds the required provider
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9211 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-29 18:31:50 +00:00
brain
af789aefbb Use the right pass
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9210 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-29 18:16:02 +00:00
brain
235168b93f Allow freeform queries. Allow $nick, $host, $ip, $pass, $md5pass and $sha256pass in the query. Ability of md5pass and sha256pass variables is dependent upon presence of m_sha256.so or m_md5.so.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9209 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-29 18:10:31 +00:00
w00t
f41c42368d Cast this to const unsigned char, not just unsigned char. We don't/can't modify them, and this avoids a warning on some compilers.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9205 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-29 16:03:26 +00:00
w00t
fe7aa42673 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9201 e03df62e-2008-0410-955e-edbf42e46eb7 2008-03-28 16:32:56 +00:00
w00t
d85e091d50 Wrong place probably
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9200 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-28 15:01:34 +00:00
w00t
34f7d0bc1b Don't desync when blanking metadata with remote servers (seperate bug)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9199 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-28 14:45:12 +00:00
w00t
256fd772c6 Don't desync when setting swhois
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9198 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-28 14:43:49 +00:00
w00t
f0bd343e64 Forwardport r9195
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9196 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-28 09:51:51 +00:00
brain
6c99a01008 Thanks danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9194 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-27 16:17:57 +00:00
brain
6a64f0f3f0 Allow activation of TLS via STARTTLS even if CAP REQ tls isnt given, so that CAP can be overridden if needed in testing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9193 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 17:04:02 +00:00
brain
e588fdca3b Should now work with ports bound to all interfaces
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9192 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 17:01:50 +00:00
brain
4f946291b7 A load of classes dont inherit from classbase, and they should. fix.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9191 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 16:53:34 +00:00
brain
d1b20f9519 This module uses io hooking too, fix it up
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9190 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 16:24:52 +00:00
brain
3b358271dd openssl should now work too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9189 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 16:12:27 +00:00
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