548 Commits

Author SHA1 Message Date
brain
c149dfa1e9 Changed name of variable in OnCleanup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2260 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-07 21:18:57 +00:00
brain
aea429253a Added OnCleanup function
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2258 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-07 21:16:47 +00:00
brain
4c6b7c70ce Added Metadata API (for transferring extensibles over a network transparent to the protocol)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2253 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-07 18:32:31 +00:00
brain
2d821f2980 Changed behaviour of module API to pass Server* to the constructor, rather than have to create one (makes more sense)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2252 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-07 17:05:34 +00:00
brain
9c701f3098 Added G/Z/Q/E line propogation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2216 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-06 12:29:53 +00:00
brain
ace0f7f83f Added OnChangeHost
Added OnChangeName


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2181 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-05 08:59:12 +00:00
brain
7da84f2e70 Added OnWallops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2155 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-04 17:46:37 +00:00
brain
9941be7564 Added clever code to propogate module's special commands (SAJOIN, KNOCK etc) transparently!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2084 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-01 19:24:53 +00:00
brain
1424c78e7e Removed old OnUserSync and OnChannelSync
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2071 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-30 22:13:47 +00:00
brain
e1a92daeb6 Added opaque protocol functions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2069 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-30 22:00:34 +00:00
brain
5a33196683 Added Server::RehashServer
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2060 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-30 15:35:15 +00:00
brain
596e41348f Added onrehash parameter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2059 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-30 15:26:58 +00:00
brain
0e4420f083 Added OnGetServerDescription (mainly for link modules)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2056 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-30 14:28:22 +00:00
brain
d7205720a5 Added OnPostLocalTopic
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2042 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-30 11:42:53 +00:00
brain
a32d186945 Added OnUserInvite()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2039 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-30 11:11:53 +00:00
brain
bc0b595b6b Added remote kill
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2035 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-30 09:59:44 +00:00
brain
de6a9294e3 Added opertype to OnOper and added OnMode function
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2010 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-29 17:09:06 +00:00
brain
090e691462 Added reason to OnUserQuit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2007 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-29 15:37:04 +00:00
brain
0e5b1c94b3 Added OnUserMessage and OnUserNotice (why have these been missing so long?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1974 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-28 10:26:35 +00:00
brain
17b5f19bf1 Added start of spanning tree system TEST MODULE, tested outbound connections
Outbound connections function OK.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1956 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-26 15:47:19 +00:00
brain
de094dc104 Removed mesh module functions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1934 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-25 10:22:01 +00:00
brain
878e437589 Added OnLoadModule and OnUnloadModule (OnLoadModule was not triggering)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1586 e03df62e-2008-0410-955e-edbf42e46eb7
2005-06-01 16:38:00 +00:00
brain
f96ddd3974 Started on -Wall - safe compile
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1570 e03df62e-2008-0410-955e-edbf42e46eb7
2005-05-30 22:36:08 +00:00
brain
55bd1494b0 Removed __single_client_alloc again because gcc devs were smoking crack and removed it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1406 e03df62e-2008-0410-955e-edbf42e46eb7
2005-05-16 11:31:58 +00:00
brain
ab01aaeeee Changed to use __single_client_alloc, faster on most systems in a single thread
Specified namespace std in *all* files


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1404 e03df62e-2008-0410-955e-edbf42e46eb7
2005-05-15 22:58:24 +00:00
brain
d75dbad760 Added Server::GetServerDescription() at request of Craig
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1374 e03df62e-2008-0410-955e-edbf42e46eb7
2005-05-13 19:20:55 +00:00
brain
b8b1fccfad Added FindDescriptor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1273 e03df62e-2008-0410-955e-edbf42e46eb7
2005-05-01 22:11:29 +00:00
brain
a643172dd7 Added and tested fd crossreference table - improves speed a lot, and fixes one of the /STATS chars which has been broken a while
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1271 e03df62e-2008-0410-955e-edbf42e46eb7
2005-05-01 19:21:21 +00:00
brain
c12ec889bb Added OnAddBan and OnDelBan module api calls, and fixed glitch which required them in m_timedbans module
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1267 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-30 02:55:55 +00:00
brain
b10ac3beb6 Added a Server:: method to send server notices to channels
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1214 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-27 15:21:08 +00:00
brain
b6f5d703b0 Major code tidyup (-W) - expect a few belches
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1190 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-26 00:58:31 +00:00
brain
ddc514e66d Added global oper monitoring through modules and global connect monitoring through modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1177 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-23 23:33:13 +00:00
brain
30b22d2b48 Added OnOperCompare function to override strcmp in password check for /oper
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1161 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-22 15:10:11 +00:00
brain
1b24d217bb Added extra comment
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1137 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-20 16:02:09 +00:00
brain
2db0df5813 Added module message passing architecture
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1136 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-20 15:48:27 +00:00
brain
1e4d37149c Added OnUserDisconnect method to modules.* to fix fd leak in m_ident.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1134 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-20 02:48:12 +00:00
brain
668df37516 Added:
OnMeshToken
MeshSendAll(std::string text);
MeshSendCommon(userrec* user, std::string text);
MeshSendAllAlive(std::string text);
MeshSendUnicast(std::string destination, std::string text);
MeshSendAllExcept(std::string target, std::string text);
MeshCheckChan(chanrec *c,std::string servername);
MeshCheckCommon(userrec* u,std::string servername);


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1112 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-16 18:58:08 +00:00
brain
d664aec8c1 Added a chanrec to OnRawMode, om pointed out i hadnt given him it :D
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1108 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-16 01:26:20 +00:00
brain
517dd987a7 Added new API methods:
int Module::OnRawMode(userrec* user, char mode, std::string param, bool adding, int pcnt);
int Module::OnCheckInvite(userrec* user, chanrec* chan);
int Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven);
int Module::OnCheckLimit(userrec* user, chanrec* chan);
int Module::OnCheckBan(userrec* user, chanrec* chan);
void Module::OnStats(char symbol);
int Module::OnChangeLocalUserHost(userrec* user, std::string newhost);
int Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost);
int Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic);


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1105 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-15 19:29:20 +00:00
brain
580632d29a Added OnUserKick and OnUserPreKick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1086 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-14 13:27:40 +00:00
brain
eacdc9ef87 Added (untested!) OnCheckReady and OnUserRegister (gonna write an ident lookup module!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1081 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-14 12:47:19 +00:00
brain
9a3475ed58 Added OnPreCommand
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1080 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-14 12:09:53 +00:00
brain
3555423633 Added IsValidHostMask
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1078 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-13 17:22:46 +00:00
brain
409e3a5c84 Added Module::OnSendList
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1072 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-13 13:02:20 +00:00
brain
c0f731e19d Added Server::AddGLine
Added Server::AddKLine
Added Server::AddZLine
Added Server::AddQLine
Added Server::AddELine
Added Server::DelGLine
Added Server::DelKLine
Added Server::DelZLine
Added Server::DelQLine
Added Server::DelELine
Added Server::Duration


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1071 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-13 12:41:46 +00:00
brain
f6e9222205 Added OnBackgroundTimer method, ticks every 5 seconds approximately
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1058 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-12 18:11:46 +00:00
brain
cb77b70cbd Added Server::PseudoToUser and Server::UserToPseudo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1057 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-12 14:38:32 +00:00
brain
3d7312f8af Changed parameters of OnPacketTransmit and OnPacketReceive to be much more useful
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1024 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-09 14:39:07 +00:00
brain
211b24ba8c Started work on /UNLOADMODULE, resource tracking and flags in Version class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@999 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-07 17:04:04 +00:00
brain
05d2b12c2c Added VF_ module flags as discussed with Craig
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@996 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-07 05:08:10 +00:00