]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
14 years agoRemote user messaging fixes
danieldg [Wed, 2 Sep 2009 00:53:03 +0000 (00:53 +0000)]
Remote user messaging fixes

Add format string output to DumpText
Fix PI->PushToClient prefixing issue
Fix ENCAP routing to use SID rather than server name

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11658 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd modules to the VF_COMMON list in backwards compatability link mode, translate...
danieldg [Wed, 2 Sep 2009 00:52:54 +0000 (00:52 +0000)]
Add modules to the VF_COMMON list in backwards compatability link mode, translate FIDENT as CHGIDENT

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11657 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd s2s backward compatability for protocol changes
danieldg [Wed, 2 Sep 2009 00:52:46 +0000 (00:52 +0000)]
Add s2s backward compatability for protocol changes

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11656 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoFix segfault in m_chanprotect when OnAccessCheck is called with a null channel
danieldg [Wed, 2 Sep 2009 00:52:38 +0000 (00:52 +0000)]
Fix segfault in m_chanprotect when OnAccessCheck is called with a null channel

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11655 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoChange more modules to use VF_OPTCOMMON routing
danieldg [Wed, 2 Sep 2009 00:52:28 +0000 (00:52 +0000)]
Change more modules to use VF_OPTCOMMON routing

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11654 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRoute CHGHOST/CHGNAME/CHGIDENT using optional unicast routing
danieldg [Wed, 2 Sep 2009 00:52:21 +0000 (00:52 +0000)]
Route CHGHOST/CHGNAME/CHGIDENT using optional unicast routing

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11653 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd OnChangeIdent and FIDENT support
danieldg [Wed, 2 Sep 2009 00:52:12 +0000 (00:52 +0000)]
Add OnChangeIdent and FIDENT support

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11652 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMake CHECK work remotely with optional second parameter
danieldg [Wed, 2 Sep 2009 00:52:04 +0000 (00:52 +0000)]
Make CHECK work remotely with optional second parameter

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11651 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd OnSendWhoLine hook, and use it in the oper hiding modules
danieldg [Wed, 2 Sep 2009 00:51:56 +0000 (00:51 +0000)]
Add OnSendWhoLine hook, and use it in the oper hiding modules

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11650 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoFix memory leak and invalid vtable location on unload of m_sslinfo
danieldg [Wed, 2 Sep 2009 00:51:48 +0000 (00:51 +0000)]
Fix memory leak and invalid vtable location on unload of m_sslinfo

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11649 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoDon't merge FMODEs with a non-server source
danieldg [Wed, 2 Sep 2009 00:51:41 +0000 (00:51 +0000)]
Don't merge FMODEs with a non-server source

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11648 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoChange SAMODE to source from the acting user, not the server
danieldg [Wed, 2 Sep 2009 00:51:33 +0000 (00:51 +0000)]
Change SAMODE to source from the acting user, not the server

This is a merge of the OOMODE command into SAMODE.
This fixes SAMODE not working because of mode merging.
An additional access check for umode changes is added for this command.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11647 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoDon't pass NULL source for hooks invoked from server-sourced PRIVMSG/NOTICE
danieldg [Wed, 2 Sep 2009 00:51:26 +0000 (00:51 +0000)]
Don't pass NULL source for hooks invoked from server-sourced PRIVMSG/NOTICE

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11646 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agom_dnsbl: Change ident marking to a generic "MARK" that allows ident and/or vhost...
danieldg [Wed, 2 Sep 2009 00:51:19 +0000 (00:51 +0000)]
m_dnsbl: Change ident marking to a generic "MARK" that allows ident and/or vhost to be set

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11645 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd ident change action to m_dnsbl [patch by cytrix]
danieldg [Wed, 2 Sep 2009 00:51:12 +0000 (00:51 +0000)]
Add ident change action to m_dnsbl [patch by cytrix]

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11644 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoinline Channel::IsModeSet
danieldg [Wed, 2 Sep 2009 00:51:04 +0000 (00:51 +0000)]
inline Channel::IsModeSet

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11643 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd initial query support to m_mysql [patch by Athenon]
danieldg [Wed, 2 Sep 2009 00:50:58 +0000 (00:50 +0000)]
Add initial query support to m_mysql [patch by Athenon]

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11642 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoFix segfault due to invalidated iterator
danieldg [Wed, 2 Sep 2009 00:50:50 +0000 (00:50 +0000)]
Fix segfault due to invalidated iterator

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11641 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRip out VisData in preparation for replacing it with more flexible hooks
danieldg [Wed, 2 Sep 2009 00:50:43 +0000 (00:50 +0000)]
Rip out VisData in preparation for replacing it with more flexible hooks

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11640 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoFix some ICC-found warnings and remove unused #define
danieldg [Wed, 2 Sep 2009 00:50:35 +0000 (00:50 +0000)]
Fix some ICC-found warnings and remove unused #define

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11639 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd server IP to /CHECK output for local users
danieldg [Wed, 2 Sep 2009 00:50:28 +0000 (00:50 +0000)]
Add server IP to /CHECK output for local users

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11638 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove now-unused quitmsg/operquitmsg fields from User
danieldg [Wed, 2 Sep 2009 00:50:21 +0000 (00:50 +0000)]
Remove now-unused quitmsg/operquitmsg fields from User

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11637 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMove user quit logic out of cull list
danieldg [Wed, 2 Sep 2009 00:50:12 +0000 (00:50 +0000)]
Move user quit logic out of cull list

This changes the cull list from a list of User* that ran special cleanup
to a list of classbase* that simply deletes the objects.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11636 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRewrite BindPorts to index ports by their human-readable description
danieldg [Wed, 2 Sep 2009 00:50:04 +0000 (00:50 +0000)]
Rewrite BindPorts to index ports by their human-readable description

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11635 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoModResult conversion: Change return type of all module functions
danieldg [Wed, 2 Sep 2009 00:49:36 +0000 (00:49 +0000)]
ModResult conversion: Change return type of all module functions

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove "servermode" parameter, replace with IS_FAKE() which is more reliable
danieldg [Wed, 2 Sep 2009 00:49:24 +0000 (00:49 +0000)]
Remove "servermode" parameter, replace with IS_FAKE() which is more reliable

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11633 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove duplicated address conversion from InspIRCd::BindSocket, fix FD leak in listen...
danieldg [Wed, 2 Sep 2009 00:49:15 +0000 (00:49 +0000)]
Remove duplicated address conversion from InspIRCd::BindSocket, fix FD leak in listensocket

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11632 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd Module* creator to Command and ModeHandler
danieldg [Wed, 2 Sep 2009 00:48:48 +0000 (00:48 +0000)]
Add Module* creator to Command and ModeHandler

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRecord module source file in the Module object
danieldg [Wed, 2 Sep 2009 00:48:39 +0000 (00:48 +0000)]
Record module source file in the Module object

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11630 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoUse a set to mark client SSL ports rather than going by textual IP/port pairs
danieldg [Wed, 2 Sep 2009 00:48:32 +0000 (00:48 +0000)]
Use a set to mark client SSL ports rather than going by textual IP/port pairs

This theoretically speeds up accepting connections. Visible changes are proper
IPv6 port text in 005 output and no possibility of incorrect SSL on addresses
that mismatch an incoming port (possible with IPv4 wildcard SSL and IPv6
plaintext on the same port, not that anyone would do such a thing). Bind ports
also now tell which SSL module they use in /stats p.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11629 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoChange OnHookUserIO to OnHookIO, making it usable for more than User* and less picky...
danieldg [Wed, 2 Sep 2009 00:48:23 +0000 (00:48 +0000)]
Change OnHookUserIO to OnHookIO, making it usable for more than User* and less picky on string matching

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11628 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd irc::sockets::satouser for user-readable IP/port pairs
danieldg [Wed, 2 Sep 2009 00:48:16 +0000 (00:48 +0000)]
Add irc::sockets::satouser for user-readable IP/port pairs

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11627 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAllow voice or higher users to speak even when a matching muteban exists
danieldg [Wed, 2 Sep 2009 00:48:09 +0000 (00:48 +0000)]
Allow voice or higher users to speak even when a matching muteban exists

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11626 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRoute whois notices using ENCAP WHOISNOTICE to properly fix remote user PrivPermissio...
danieldg [Wed, 2 Sep 2009 00:48:02 +0000 (00:48 +0000)]
Route whois notices using ENCAP WHOISNOTICE to properly fix remote user PrivPermission bug

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11625 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove empty permanent channels when m_permchannels is unloaded
danieldg [Wed, 2 Sep 2009 00:47:54 +0000 (00:47 +0000)]
Remove empty permanent channels when m_permchannels is unloaded

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11624 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove calls to strdup() in core, it is not better than std::string
danieldg [Wed, 2 Sep 2009 00:47:45 +0000 (00:47 +0000)]
Remove calls to strdup() in core, it is not better than std::string

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11623 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove strnewdup(), it is a good source of possible memory leaks
danieldg [Wed, 2 Sep 2009 00:47:36 +0000 (00:47 +0000)]
Remove strnewdup(), it is a good source of possible memory leaks

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11622 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMore deallocation-at-exit cleanup
danieldg [Wed, 2 Sep 2009 00:47:29 +0000 (00:47 +0000)]
More deallocation-at-exit cleanup

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11621 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMake VF_OPTCOMMON module mismatches a fatal link error by default
danieldg [Wed, 2 Sep 2009 00:47:22 +0000 (00:47 +0000)]
Make VF_OPTCOMMON module mismatches a fatal link error by default

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11620 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd VF_OPTCOMMON for optionally common modules
danieldg [Wed, 2 Sep 2009 00:47:14 +0000 (00:47 +0000)]
Add VF_OPTCOMMON for optionally common modules

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11619 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMisc removal of pointless Extend strings
danieldg [Wed, 2 Sep 2009 00:47:05 +0000 (00:47 +0000)]
Misc removal of pointless Extend strings

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11618 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoThreadWindows: Remove ThreadSignalListener and connect the socket right away
danieldg [Wed, 2 Sep 2009 00:46:58 +0000 (00:46 +0000)]
ThreadWindows: Remove ThreadSignalListener and connect the socket right away

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11617 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoValgrind cleanup: fix segfault on exit
danieldg [Wed, 2 Sep 2009 00:46:51 +0000 (00:46 +0000)]
Valgrind cleanup: fix segfault on exit

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11616 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoValgrind cleanup: finish destructor creation
danieldg [Wed, 2 Sep 2009 00:46:44 +0000 (00:46 +0000)]
Valgrind cleanup: finish destructor creation

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoValgrind cleanup: deallocate RFC modes, clientlist, and uuidlist
danieldg [Wed, 2 Sep 2009 00:46:36 +0000 (00:46 +0000)]
Valgrind cleanup: deallocate RFC modes, clientlist, and uuidlist

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11614 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoValgrind cleanup: Add RemoveRFCCommands() to dlclose() and delete the core commands
danieldg [Wed, 2 Sep 2009 00:46:29 +0000 (00:46 +0000)]
Valgrind cleanup: Add RemoveRFCCommands() to dlclose() and delete the core commands

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11613 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoFix valgrind uninitialised memory error
danieldg [Wed, 2 Sep 2009 00:46:21 +0000 (00:46 +0000)]
Fix valgrind uninitialised memory error

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11612 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove unneeded Extensible inheritance and remove "age" field from classbase
danieldg [Wed, 2 Sep 2009 00:46:11 +0000 (00:46 +0000)]
Remove unneeded Extensible inheritance and remove "age" field from classbase

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11611 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove misleading byte counts from stats z
danieldg [Wed, 2 Sep 2009 00:46:03 +0000 (00:46 +0000)]
Remove misleading byte counts from stats z

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11610 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoInclude untranslated user/channel metadata in CHECK output
danieldg [Wed, 2 Sep 2009 00:45:55 +0000 (00:45 +0000)]
Include untranslated user/channel metadata in CHECK output

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11609 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove useless vector copy
danieldg [Wed, 2 Sep 2009 00:45:49 +0000 (00:45 +0000)]
Remove useless vector copy

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11608 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMetaData rework
danieldg [Wed, 2 Sep 2009 00:45:37 +0000 (00:45 +0000)]
MetaData rework

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11607 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove a few unneeded string copies in the PRIVMSG path
danieldg [Wed, 2 Sep 2009 00:45:29 +0000 (00:45 +0000)]
Remove a few unneeded string copies in the PRIVMSG path

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11606 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoStrong typing for stacked module results
danieldg [Wed, 2 Sep 2009 00:45:22 +0000 (00:45 +0000)]
Strong typing for stacked module results

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11605 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd User::DoHostCycle
danieldg [Wed, 2 Sep 2009 00:45:16 +0000 (00:45 +0000)]
Add User::DoHostCycle

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11604 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoUpdate NICKLOCK to route using unicast
danieldg [Wed, 2 Sep 2009 00:45:08 +0000 (00:45 +0000)]
Update NICKLOCK to route using unicast

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11603 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAllow commands to optionally route themselves using ENCAP
danieldg [Wed, 2 Sep 2009 00:44:59 +0000 (00:44 +0000)]
Allow commands to optionally route themselves using ENCAP

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11602 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoInclude explicit routing information in Command, will replace CMD_LOCALONLY return...
danieldg [Wed, 2 Sep 2009 00:44:50 +0000 (00:44 +0000)]
Include explicit routing information in Command, will replace CMD_LOCALONLY return value

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11601 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove unneeded ProtocolInterface::Introduce
danieldg [Wed, 2 Sep 2009 00:44:40 +0000 (00:44 +0000)]
Remove unneeded ProtocolInterface::Introduce

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11600 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove unused I_ProtoSendMetaData, I_ProtoSendMode fields of Implementation
danieldg [Wed, 2 Sep 2009 00:44:32 +0000 (00:44 +0000)]
Remove unused I_ProtoSendMetaData, I_ProtoSendMode fields of Implementation

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11599 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoReplace FOREACH_RESULT_MAP with a more readable and flexible do_each_hook/while_each_...
danieldg [Wed, 2 Sep 2009 00:44:24 +0000 (00:44 +0000)]
Replace FOREACH_RESULT_MAP with a more readable and flexible do_each_hook/while_each_hook macro pair

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11598 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd "created" parameter to OnUserJoin, to avoid explicit checks for +P
danieldg [Wed, 2 Sep 2009 00:44:15 +0000 (00:44 +0000)]
Add "created" parameter to OnUserJoin, to avoid explicit checks for +P

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11597 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoUse CheckTimeStamp to merge modes on netburst
danieldg [Wed, 2 Sep 2009 00:44:06 +0000 (00:44 +0000)]
Use CheckTimeStamp to merge modes on netburst

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11596 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoCast rework: use C++ style static_cast<> instead of C-style casts
danieldg [Wed, 2 Sep 2009 00:43:56 +0000 (00:43 +0000)]
Cast rework: use C++ style static_cast<> instead of C-style casts

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11595 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRework mode parser into slightly smaller chunks
danieldg [Wed, 2 Sep 2009 00:43:41 +0000 (00:43 +0000)]
Rework mode parser into slightly smaller chunks

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11594 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoReplace std::deque with std::vector in spanningtree and related modules
danieldg [Wed, 2 Sep 2009 00:43:25 +0000 (00:43 +0000)]
Replace std::deque with std::vector in spanningtree and related modules

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11593 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoChange allocation of commands/modes
danieldg [Wed, 2 Sep 2009 00:43:04 +0000 (00:43 +0000)]
Change allocation of commands/modes

API change: Commands passed to AddCommand are no longer deleted automatically

This removes lots of needless heap allocation and fixes a few memory leaks by
allocating commands and modes as part of the Module rather than creating them
separately in the module constructor.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11592 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoClean up challenge generation to not include character 0x7F, and fix some other thing...
danieldg [Wed, 2 Sep 2009 00:42:57 +0000 (00:42 +0000)]
Clean up challenge generation to not include character 0x7F, and fix some other things in the file

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11591 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoVerify modules providing routed commands are VF_COMMON
danieldg [Wed, 2 Sep 2009 00:42:50 +0000 (00:42 +0000)]
Verify modules providing routed commands are VF_COMMON

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11590 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRead multiple GnuTLS records in one RawSocketRead operation
danieldg [Wed, 2 Sep 2009 00:42:42 +0000 (00:42 +0000)]
Read multiple GnuTLS records in one RawSocketRead operation

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11589 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoPut back missing semicolon
brain [Wed, 2 Sep 2009 00:27:22 +0000 (00:27 +0000)]
Put back missing semicolon

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11588 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMove file inclusion logic into calcdep, and complain about ambiguous #include directi...
danieldg [Tue, 1 Sep 2009 22:44:44 +0000 (22:44 +0000)]
Move file inclusion logic into calcdep, and complain about ambiguous #include directives there

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11587 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoClarify FreeBSD 4 message a bit more
danieldg [Tue, 1 Sep 2009 22:44:37 +0000 (22:44 +0000)]
Clarify FreeBSD 4 message a bit more

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11586 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoUse a bool return type for boolean return
danieldg [Tue, 1 Sep 2009 15:08:30 +0000 (15:08 +0000)]
Use a bool return type for boolean return

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11585 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMake the FreeBSD 4 message useful
danieldg [Tue, 1 Sep 2009 15:08:23 +0000 (15:08 +0000)]
Make the FreeBSD 4 message useful

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11584 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoUse sa_size() rather than sizeof() when passing input parameters to a syscall
danieldg [Tue, 1 Sep 2009 15:08:16 +0000 (15:08 +0000)]
Use sa_size() rather than sizeof() when passing input parameters to a syscall

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11583 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove unneeded #ifdef IPV6 lines
danieldg [Tue, 1 Sep 2009 15:08:09 +0000 (15:08 +0000)]
Remove unneeded #ifdef IPV6 lines

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11582 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove unneeded paramaters from OnAcceptReady
danieldg [Tue, 1 Sep 2009 15:08:00 +0000 (15:08 +0000)]
Remove unneeded paramaters from OnAcceptReady

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11581 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMove IP<->sockaddr conversions into irc::sockets:: namespace
danieldg [Tue, 1 Sep 2009 15:07:52 +0000 (15:07 +0000)]
Move IP<->sockaddr conversions into irc::sockets:: namespace

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11580 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove now-unused insp_sockaddr and insp_inaddr types
danieldg [Tue, 1 Sep 2009 15:07:45 +0000 (15:07 +0000)]
Remove now-unused insp_sockaddr and insp_inaddr types

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11579 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove more text<->binary IP conversions, making code more IPv4/IPv6 independent
danieldg [Tue, 1 Sep 2009 15:07:36 +0000 (15:07 +0000)]
Remove more text<->binary IP conversions, making code more IPv4/IPv6 independent

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11578 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRename User::GetPort to GetServerPort to clarify its purpose
danieldg [Tue, 1 Sep 2009 15:07:27 +0000 (15:07 +0000)]
Rename User::GetPort to GetServerPort to clarify its purpose

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11577 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoReturn server port in GetPort rather than the arbitrary client port
danieldg [Tue, 1 Sep 2009 15:07:19 +0000 (15:07 +0000)]
Return server port in GetPort rather than the arbitrary client port

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11576 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoChange IP address storage in User to use more IPv4/IPv6 common code
danieldg [Tue, 1 Sep 2009 15:07:11 +0000 (15:07 +0000)]
Change IP address storage in User to use more IPv4/IPv6 common code

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11575 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRemove needless sockaddr[2] allocations, replace with irc::sockets::sockaddrs union
danieldg [Tue, 1 Sep 2009 15:07:02 +0000 (15:07 +0000)]
Remove needless sockaddr[2] allocations, replace with irc::sockets::sockaddrs union

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11574 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoEnable IPv6 support by default
danieldg [Tue, 1 Sep 2009 15:06:55 +0000 (15:06 +0000)]
Enable IPv6 support by default

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11573 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoStrip SUPPORT_IP6LINKS #define
danieldg [Tue, 1 Sep 2009 15:06:47 +0000 (15:06 +0000)]
Strip SUPPORT_IP6LINKS #define

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoUse CXXFLAGS rather than nonstandard NICEFLAGS/FLAGS/etc
danieldg [Tue, 1 Sep 2009 15:06:39 +0000 (15:06 +0000)]
Use CXXFLAGS rather than nonstandard NICEFLAGS/FLAGS/etc

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11571 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoConsolidate root-level Makefile targets to clarify common specifications
danieldg [Tue, 1 Sep 2009 15:06:32 +0000 (15:06 +0000)]
Consolidate root-level Makefile targets to clarify common specifications

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11570 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMove bsd-dep.mk/gnu-dep.mk to top-level Makefile
danieldg [Tue, 1 Sep 2009 15:06:25 +0000 (15:06 +0000)]
Move bsd-dep.mk/gnu-dep.mk to top-level Makefile

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11569 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoAdd "make single" target and fix slow depfile generation on "make module"
danieldg [Tue, 1 Sep 2009 15:06:18 +0000 (15:06 +0000)]
Add "make single" target and fix slow depfile generation on "make module"

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11568 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoReplace special treatment of spanningtree module directory with a generic directory...
danieldg [Tue, 1 Sep 2009 15:06:11 +0000 (15:06 +0000)]
Replace special treatment of spanningtree module directory with a generic directory build

This allows "make M=m_spanningtree" to work on a clean build tree
It also allows for other complex modules to be created (i.e. m_services)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11567 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRun a dependency check on modules so missing dependencies are detected during configure
danieldg [Tue, 1 Sep 2009 15:06:04 +0000 (15:06 +0000)]
Run a dependency check on modules so missing dependencies are detected during configure

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11566 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoFix MAKEPROG configure warning
danieldg [Tue, 1 Sep 2009 15:05:57 +0000 (15:05 +0000)]
Fix MAKEPROG configure warning

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11565 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMove compiler flag selection from configure to Makefile; add support for Intel C...
danieldg [Tue, 1 Sep 2009 15:05:50 +0000 (15:05 +0000)]
Move compiler flag selection from configure to Makefile; add support for Intel C++ Compiler.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11564 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoClean up unneeded messages, fix BSD make
danieldg [Tue, 1 Sep 2009 15:05:43 +0000 (15:05 +0000)]
Clean up unneeded messages, fix BSD make

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11563 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoFix "make module" to include dependency generation
danieldg [Tue, 1 Sep 2009 15:05:33 +0000 (15:05 +0000)]
Fix "make module" to include dependency generation

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11562 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoMove VERSION/REVISION to their own header to avoid needless rebuilds on update
danieldg [Tue, 1 Sep 2009 15:05:26 +0000 (15:05 +0000)]
Move VERSION/REVISION to their own header to avoid needless rebuilds on update

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11561 e03df62e-2008-0410-955e-edbf42e46eb7

14 years ago./configure fixes: -modupdate is no longer needed, -update no longer forces a full...
danieldg [Tue, 1 Sep 2009 15:05:18 +0000 (15:05 +0000)]
./configure fixes: -modupdate is no longer needed, -update no longer forces a full rebuild

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11560 e03df62e-2008-0410-955e-edbf42e46eb7

14 years agoRe-implement dependency generation in perl to increase speed
danieldg [Tue, 1 Sep 2009 15:05:11 +0000 (15:05 +0000)]
Re-implement dependency generation in perl to increase speed

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11559 e03df62e-2008-0410-955e-edbf42e46eb7