aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_permchannels.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Warn when a user configures a permanent channel without +P.Gravatar Peter Powell2017-04-241-0/+6
|
* Fix m_permchannels and m_xline_db on WindowsGravatar Adam2014-05-081-6/+1
| | | | | | The call to remove() can fail if the database doesn't already exist. Just ignore the error, which effectively makes the rename() call below work as it does on nix
* Work around STB_GNU_UNIQUE symbols not allowing module unmapGravatar attilamolnar2013-09-151-3/+3
|
* m_permchannels Fix empty topic setbyGravatar attilamolnar2013-08-281-0/+2
|
* m_permchannels Add the ability to save listmodesGravatar attilamolnar2013-08-271-4/+70
|
* m_permchannels Save channel TS, topic set time and set by informationGravatar attilamolnar2013-08-271-15/+20
| | | | When loading, ignore and log channels with a name longer than Limits.MaxChan
* m_permchannels Construct the final line that will be saved in a std::string ↵Gravatar attilamolnar2013-08-271-7/+10
| | | | in WriteDatabase()
* m_permchannels Workaround for alphabetical module initialization orderGravatar attilamolnar2013-04-211-8/+32
| | | | | | | Read database after all modules have been inited Add exception logging Fixes #485 reported by @gholms
* m_permchannels Load channels from the config only at module load time and ↵Gravatar attilamolnar2013-03-201-5/+15
| | | | only when there are no linked servers to avoid desync
* Dynamically determine the size of the eventlist[] passed to Attach()Gravatar attilamolnar2012-12-021-1/+1
| | | | m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
* Issue #346 - fix m_permchannels.cpp and m_xline_db.cpp saving their ↵Gravatar Adam2012-10-271-0/+8
| | | | databases on Windows due to rename() failing if the destination file exists
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+15
|
* Fix misspellingGravatar danieldg2010-02-281-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12572 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a short message at the top of permchannel DB, and ensure config format ↵Gravatar danieldg2010-02-231-0/+1
| | | | | | is compat git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12544 e03df62e-2008-0410-955e-edbf42e46eb7
* Delete 0-user permanent channels that are being set -PGravatar danieldg2010-02-161-22/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12475 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix compilationGravatar danieldg2010-02-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12447 e03df62e-2008-0410-955e-edbf42e46eb7
* Write out the permchannels database on a timer, not on every mode changeGravatar danieldg2010-02-121-13/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12446 e03df62e-2008-0410-955e-edbf42e46eb7
* Mark +P mode as oper-only now that it no longer requires an explicit ↵Gravatar danieldg2010-02-011-1/+1
| | | | | | permission string git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12343 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove duplicated permisison check for setting mode +P (it is already ↵Gravatar danieldg2010-01-311-6/+0
| | | | | | restricted in allowed chanmodes) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12338 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up some slow iterationsGravatar danieldg2010-01-191-6/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12300 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove VF_COMMON from mode-provider modules (no longer needed due to better ↵Gravatar danieldg2010-01-151-1/+1
| | | | | | CAPAB checking) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12263 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes from vtable cross-checkGravatar danieldg2009-10-251-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11977 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix interaction of m_permchannels post-cull and channel empty-by-quit that ↵Gravatar danieldg2009-10-201-0/+1
| | | | | | causes leaked channels git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11933 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind now runs completely clean.Gravatar danieldg2009-10-191-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11916 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove dummy API_VERSION from Version constructorGravatar danieldg2009-10-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11887 e03df62e-2008-0410-955e-edbf42e46eb7
* Add names for all modes (part 1 of named channel mode list)Gravatar danieldg2009-10-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11809 e03df62e-2008-0410-955e-edbf42e46eb7
* Run DelMode and DelModeWatcher in RemoveModuleGravatar danieldg2009-10-051-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11799 e03df62e-2008-0410-955e-edbf42e46eb7
* Change IS_FAKE and CheckTimeStamp to IS_SERVER and ResolveModeConflict to ↵Gravatar danieldg2009-09-261-1/+1
| | | | | | clarify their use git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11765 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Describe module purpose in /MODULES outputGravatar danieldg2009-09-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11757 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix quoting in permchannels DB, discovered by jackmcbarn (could result in ↵Gravatar danieldg2009-09-151-5/+32
| | | | | | command execution) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11726 e03df62e-2008-0410-955e-edbf42e46eb7
* Introduce "X" snomask for remote *:line messages [patch by jackmcbarn]Gravatar danieldg2009-09-141-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11721 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove redundant ServerInstance* fieldsGravatar danieldg2009-09-131-5/+5
| | | | | | | | It has been impossible to have more than one InspIRCd* object in the same address space for some time now, and this feature was never used. This formalizes class InspIRCd as a singleton object. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11703 e03df62e-2008-0410-955e-edbf42e46eb7
* Simplify ModeHandler constructorGravatar danieldg2009-09-131-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11701 e03df62e-2008-0410-955e-edbf42e46eb7
* Utilise OnRawMode and OnPostTopicChange hooks to write a dynamic conf of ↵Gravatar w00t2009-09-051-2/+87
| | | | | | permchannels tags to a configurable location, so it's just a matter of <include file="../bin/permchannels.conf"> or something. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11679 e03df62e-2008-0410-955e-edbf42e46eb7
* ModResult conversion: Change return type of all module functionsGravatar danieldg2009-09-021-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove "servermode" parameter, replace with IS_FAKE() which is more reliableGravatar danieldg2009-09-021-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11633 e03df62e-2008-0410-955e-edbf42e46eb7
* Add Module* creator to Command and ModeHandlerGravatar danieldg2009-09-021-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove empty permanent channels when m_permchannels is unloadedGravatar danieldg2009-09-021-0/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11624 e03df62e-2008-0410-955e-edbf42e46eb7
* Change allocation of commands/modesGravatar danieldg2009-09-021-9/+4
| | | | | | | | | | 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
* OnRehash changes: split to multiple hooks to clarify use and prevent ↵Gravatar danieldg2009-05-241-2/+2
| | | | | | explosion of rehashes on a /REHASH * git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7
* If you're going to add magical number hacks, please comment them ↵Gravatar w00t2009-04-091-0/+7
| | | | | | appropriately to reduce future maintenence burden. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11297 e03df62e-2008-0410-955e-edbf42e46eb7
* Set topic timestamp on newly created channels to a dummy value to work ↵Gravatar danieldg2009-04-081-0/+3
| | | | | | around bug #739 without protocol changes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11292 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Return ERR_NOPRIVILEGES for +P without channels/set-permanent priv.Gravatar w00t2008-12-241-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10908 e03df62e-2008-0410-955e-edbf42e46eb7
* Readd check for +P setting to channels/set-permanent priv, thanks Johannes13 ↵Gravatar w00t2008-12-201-0/+3
| | | | | | - naughty Namegduf for patching this out :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10901 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵Gravatar w00t2008-10-231-3/+0
| | | | | | dns.cpp in mysterious ways.. seemingly a bad pointer there somehow..? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7
* Add/document channels/set-permanent priv, and tie setting of +P to it.Gravatar w00t2008-10-231-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10692 e03df62e-2008-0410-955e-edbf42e46eb7