brain
98a92e20f1
Mode merging during FJOIN with ourts==theirts. Only +k and +l have CheckTimestamp methods atm, needs to be finished by me and TIDIED.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4556 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-27 17:59:20 +00:00
brain
354cf04012
Fix the remote +k-k stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4554 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-27 11:56:08 +00:00
brain
d0b88e6178
Allow freaky stuff with +k when coming from a server or remote user (allow +k when already a +k, or -k without correct key)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4553 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-27 11:44:11 +00:00
brain
da404eb415
Fix crashbug when exiting a remote client with threaded dns on (oops)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4552 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-27 11:41:20 +00:00
brain
57fd220885
* Fix Server::SendMode to actually work again.
...
* In the 1.1 protocol we now use FMODE for everything, rather than MODE.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4551 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-27 11:32:59 +00:00
brain
feb7185050
commit remainder of new mode bouncing stuff for TS based modes
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4550 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-27 02:33:00 +00:00
brain
f4d202cdbb
Add extra method to mode handler, ModeHandler::ModeSet().
...
Returns a std::pair<bool,string>.
if the bool is true, the mode is set, and the second item in the pair is the parameter set on it, if any
If the bool is false, the mode is not set, and the parameter given is returned as the second item of the pair
To be used in mode bouncing, to build a safe set of bounced modes (dont ask yet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4549 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-26 21:54:36 +00:00
brain
deb290af0f
Fix reiterpret_cast stuff that doesnt work right
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4548 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-26 20:53:08 +00:00
brain
99795271eb
Adapt m_spanningtree to use irc::tokenstream instead of its own irc-line-parser (that was teh sux)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4547 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-26 20:31:27 +00:00
brain
50c3145225
Migrate towards FMODE with TS, remove the SYNCTS command idea
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4546 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-26 15:17:43 +00:00
om
94111465ff
Remove numeric which makes some clients (Xchat, more?) think their nick is in use. Apparently it's not needed
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4544 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-25 15:00:49 +00:00
brain
7d8bca01e0
Exclude LUSERS lines with zero counts (NO WE WONT CHANGE THE SPELLING OF connection(s)!)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4543 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-25 11:20:53 +00:00
brain
f3abcc8bef
Prevent notice loops on servermasks
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4541 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-25 10:35:40 +00:00
brain
9c213ae9c6
Allow PRIVMSG and NOTICE targets of $<servermask> to the module events (this wasnt trivial and is almost a damn feature)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4539 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-25 10:30:54 +00:00
brain
0d4c597e61
Correct static build
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4537 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-25 09:34:38 +00:00
brain
ebf3d2f5ce
Fix NOTICE $* to go between servers
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4536 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-25 09:22:04 +00:00
brain
9c865ef0c2
Change watchlist to a list of pointers, can operate and iterate much faster
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4534 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 16:22:50 +00:00
brain
681dc046ef
In the constructor which doesnt set Request::id, we set Request::id explicitly to '\0', which will prevent such a request accidentally breaking an id-supporting module with an uninitialized buffer :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4533 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 15:57:30 +00:00
brain
196b1b09d3
Tidyup and bugfix, not copying the correct column names
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4532 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 15:49:56 +00:00
om
69790e320d
Change to use GetId() and ID rather than GetData() and data
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4531 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 15:47:08 +00:00
brain
cdfeb4f406
Fixed to dynamically allocate the fieldlist
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4530 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 15:46:13 +00:00
om
4d0cd408df
Add an ID field to Request and a GetId() method, takes const char* and returns it - Added new constructor to use it, all modules using ID should convert to the 'new' way of doing Requests, data is now theoretically depreceiated
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4529 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 15:32:22 +00:00
brain
2a291c331f
Move mysql_rpath into extra
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4527 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 11:02:19 +00:00
om
93daac4c02
*boot* youuuuu're outta here - old blocking SQL API replaced with sexy new async one <3
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4526 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 10:58:21 +00:00
om
5c8937a751
Free, as they should be, fieldlist and/or fieldmap in destructor of PgSQLresult *if* they were allocated
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4525 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 10:55:19 +00:00
brain
9309ce59d3
More stuff to return empty lists and maps when there are no more rows in the dataset
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4524 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 10:45:06 +00:00
brain
cd5f64daf7
Adjust m_mysql to match the assumed behaviour of m_pgsql exactly, e.g. when there are now rows left return an empty row
...
Fix mistake which required a reference to be freed (?!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4523 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 10:30:33 +00:00
om
e09d69dc53
Tidyups, optimisations and make the log messages make sense...
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4522 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 03:16:09 +00:00
om
e68d257ccd
simple logic error (check they already are +o before you set it), seems to fix +o issue
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4521 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 03:03:08 +00:00
om
cccd202374
Mostly updated to new API; Currently doesn't check config o:lines (should be tried before SQL ones); Doesn't seem to set UMODE +o properly
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4520 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 02:59:42 +00:00
om
6fd3920871
Give SQLfield's constructor parameters default values (effectively giving it a default constructor), lets SQLfieldMap actually be useable..
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4519 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 02:43:20 +00:00
om
031d51685c
Remove unused variable and assignment
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4518 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-23 01:22:06 +00:00
om
0b92dc3d2b
Make m_pgsql return the number of affected rows for an UPDATE or INSERT query.
...
Make m_testclient do an INSERT and test this :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4517 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 16:30:03 +00:00
brain
0f4fa12f1e
Added m_mysql.so and m_pgsql.so to docs, remove m_sql.so, RETAIN ALPHA ORDER.
...
*ALL OTHER DEVS* please add your modules to this config file when you have time, thanks ;p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4516 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 16:11:28 +00:00
brain
c9408c6c43
Alter for Rows() == X, Cols() == 0 for 'X rows affected' queries
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4515 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 16:02:17 +00:00
brain
acb8786c19
Change to doxygen-friendly comments, and actually document the lot
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4514 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 15:45:34 +00:00
om
628f8a1840
Change comment to actually be rightish
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4513 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 14:56:35 +00:00
om
a1ff11998b
Reorder a couple of constructor prototypes for consistency
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4512 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 14:54:18 +00:00
om
2330fc9ddd
Add m_sqlutils - Currently provides ID->chan/user lookups
...
Update m_sqlauth to use m_sqlutils
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4511 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 14:51:42 +00:00
brain
fcc4355c4b
I hate the fucking mysql devs. Craq smoking bastards.
...
Upon Insert, number of rows is the number of rows effected but the number of columns is 0?????
Add check to MySQLreply::Rows() to ensure the user doesnt see N rows and 0 columns!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4510 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 13:30:34 +00:00
brain
cccc3895cc
Allocate id properly
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4509 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 13:00:07 +00:00
om
bb078eebb0
Actually hook up the OnUnloadModule event >_<
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4508 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 12:57:19 +00:00
brain
7c34ada250
This compiles, dont expect it to work yet
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4507 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 12:47:31 +00:00
om
1d19420ce5
Logic error, success is when the error ID *is* NO_ERROR :P
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4505 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 11:27:09 +00:00
brain
56e74d495c
Stop publishing MySQL feature - check for successful publishing of SQL feature
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4504 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 11:25:49 +00:00
om
d36316f767
Stop publishing the PgSQL feature ( :-'( )
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4503 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 11:22:20 +00:00
brain
7c2dda0b8a
Fix -modupdate to not break inspircd_se_config.h (a configure-written header that contains an include for the socketengine header)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4502 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 11:08:00 +00:00
brain
93ddad5bdb
Make OnCheckReady safe against the user being killed, SO LONG AS THE MODULE WHICH D/C'S THE USER RETURNS FALSE
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4501 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 10:53:17 +00:00
om
06341fb5b8
Explicitly return false after killing user in OnCheckReady() (theoretically no change, but just makes sure..)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4500 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 10:52:02 +00:00
brain
8f5dbc476f
* Change to use QREPLY_FAIL
...
* Adjust error message so that it appears in the format: "<errno>: <err message>"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4499 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22 10:45:35 +00:00