summaryrefslogtreecommitdiff
path: root/src/snomasks.cpp
AgeCommit message (Collapse)Author
2018-07-20Log snotices with their description rather than just as "snomask".Peter Powell
2014-06-14Kill needless #includes in source filesAttila Molnar
2014-03-25Add typedef OperList to UserManager for use with all_opersAttila Molnar
2014-01-04Change type of snomask parameter to char in ProtocolInterface::SendSNONotice()Attila Molnar
2013-08-04Change the syntax of FOREACH macros to be less dumb.Adam
2013-07-24Rewrite SnomaskManager::SendMessage() and Flush(), split code into functionsattilamolnar
2013-07-20Enable the LINK snomask from m_spanningtree, remove unused FLOOD snomaskattilamolnar
2013-05-18Replaced vsnprintf with VAFORMAT pretty much everywhere.Daniel Vassdal
2013-05-14Add method for writing server notices.Peter Powell
This allows us to send a server notice to a user without worrying about whether they are registered or not. If a user receives a server notice and they are not registered then the nickname field will contain an asterisk instead of their nick name.
2013-04-12Add LOG_ prefix to the log level enum values.Peter Powell
2012-11-28Change empty string assignments to .clear() or remove them entirelyattilamolnar
Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f
2012-10-14Resolve two warnings clang complains aboutChrisTX
No newline at end of file in consolecolors.h String plus int in snomasks
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2012-04-15Backported Shawn's NoSnoticeStack code from insp21Robby-
2010-02-25Make remote/local snomasks consistent and allow use without namingdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12568 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-11...because every now and again, i have to do a massive commit.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-26Remove InspIRCd* parameters and fieldsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-14Introduce "X" snomask for remote *:line messages [patch by jackmcbarn]danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11721 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02ModResult conversion: Change return type of all module functionsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-18Add global-routing snomask functionsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11314 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-16Convert snomask 'A' into snomask 'a' for local announcements, add snomask ↵w00t
'A' for remote announcements. Make SAMODE send a snotice to 'a' and remote to 'A' - fixes bug #822, reported by Taros We really need a wrapper to use these, but, for now it's usable. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11304 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-15Update all wiki links to point to the new wiki. This was done automatically ↵psychon
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
2009-03-10Send (last message repeated N times) snomask to log channeldanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11202 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-10Fix snomask stacking to only delay (last message repeated) part of the snomaskdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11201 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-09Flush snotices instantly on send (disable queueing) - in it's present form, ↵w00t
it appears it annoys OCD opers. Will be reintroduced to be less irritating in future. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11193 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-14Nuke trailing spacespeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02Update copyrights for 2009.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-31I am a retard. Hear me DROOOOOOOOOOOOOOOOOOOOLLLLLLLLLLLLLLLLLLLLL...w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10771 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-31Add REMOTEOPER snomask.. use it.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10770 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-31Add snomask +s +L - remote link notices.w00t
Can be a useful distinction for bigger networks or networks with more distinction on what people can and cannot see. This also makes RemoteMessage more match it's docs and removes useless redundancy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10759 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-22Actually call OnSendSnotice event.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10224 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-29Remove last vestige of libircdfoo, by changing tag into a single ↵w00t
identifier marking object as requiring compilation into a .o (minor commit) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-29After discussions and thought, move umode +n to +s. This increases ↵w00t
cross-ircd compat (both charybdis and unreal use +s for snomasks, others might in the future). This also decreases complexity for new users, and removes the redundancy. This means that just +s +cC for example will be required to view connects. (files to be renamed in next commit to not confuse svn). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10074 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18Make User:: nick/ident/dhost/fullname and some other things std::string ↵aquanight
instead of char*/char[] (MODULES DO NOT COMPILE) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9748 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18Fixybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9731 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18Whoops, this was a bit fucked up :pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9730 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18Log all snomasks to "snomask" log type, level DEFAULT. This means your log ↵brain
gets all the snomasks in it, but you can filter them out with "-snomask". This allows a user to redirect them to a channel with m_chanlog git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9729 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05Okay, this was good in theory, but totally and utterly fucked in ↵w00t
implementation. Rip out automatic global snotice code. It's not going to be *that* difficult to trigger global snotice with protocol interface now anyway I guess. We need to re-add calls to protocol interfaces in places like failed oper and so on. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9649 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-23Remoteconnect and remotequit should be local-only snomasksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9583 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-23Fixw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9580 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-23Warn, don't throw..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9579 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21Fix bug found by peavey, which much frustrated him and w00t. He leiks ↵brain
mudkipz. Also fix bug #522 reported by Casey git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9575 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21Hack, hack, hack, hack hack. Hack hack. Probably fix snotice loops, though.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9573 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21Merge in large patchset from GreenReaper, useful fixes for freeing a ton of ↵brain
different things on shutdown for tidyness, and a few stack corruption fixes in the mode handler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9565 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-17Add potential for local-only snotices and use them for the ones that should ↵w00t
be local. Individual messages cannot be made local-only, but I can't think of circumstances where this is necessary. Let's write it when it *is* necessary. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9527 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-17Remove debug from snomask flushing, and send ALL snotices globally ↵w00t
automagically (this probably means that calling SendSNONotice calls can be removed from places where they were added individually. XXX this needs fixing in two places: some snomasks are entirely local (local connect/quit) and some individual snotices may wish to be local only (though I can't think of any right now) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9525 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10Make K|G|Z|ELine actually work with a nickname target (code was there but ↵w00t
not functional) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8866 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-02Move some stuff to usermanager, remove a little header insanity, remove ↵w00t
trace because it's still less useful than a chocolate fireman. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8790 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-26ANNOUNCENENT -> ANNOUNCEMENTbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8754 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17Fix.. snomask O is already taken (ffs) so use A insteadw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8729 e03df62e-2008-0410-955e-edbf42e46eb7