summaryrefslogtreecommitdiff
path: root/src/commands
AgeCommit message (Collapse)Author
2008-05-23NEVER use the two-param assign unless you want your string padding to len ↵brain
bytes with \0! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9796 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-20char -> std::string conversionw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9777 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-19Convert channel::name to std::string, this was a beastie!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9770 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-19Convert connection::hostbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9768 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-19Fix users being unable to register (aquanight, what the fuck were you ↵w00t
smoking? :p) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9765 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-18Fix two occurances of match() on a const char* herebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9739 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13Fix the format of +p channels in /list (both in core /list and in ↵brain
m_safelist), thanks jrm :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9723 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-11Show keys to opers correctlybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9705 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-11Show +sp channels to opers correctlybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9702 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10Improve this not to use pointer maths directly, use an iteratorbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9699 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-10Fix for bug #532 reported by dantheman, thanksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9698 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08When searching by servername without wildcards, conceal +i users no matter ↵brain
what craq the spec was on git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9668 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-07Add support for /nick 0: changes nick to UID, which can come in useful for ↵w00t
circumstances when trying to connect while your nick is in use. Also supported by various others (ircd etc?). This also moves validation checking up a bit, avoiding two calls to IsNick in an obscure circumstance (hooray). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9660 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05Snotice on failed oper.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9650 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05fix LoopCalls to not send param count thus avoiding a crash in command parserpeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9642 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05Calling wrong loopcall overloaded method, due to hasty search and replace ↵brain
earlier git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9641 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-04Conversion of command handler params from "const char* const* parameters, ↵brain
int pcnt" to "const std::vector<std::string>& parameters". All of core is converted, but cant test it till the modules are converted. IMPORTANT: The mode parser public calls have had to be tweaked a bit to also use the string vector. Note that this makes a LOT of our core a bit messy and paves the way to convert a lot of stuff from the mess of .c_str() calls to using std::string params directly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9608 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-03Allow KICKing multiple nicksaquanight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9604 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-18Add GreenReaper and Skip to contributorsw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9534 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-17Remove use of SendSNONotice to send to remote servers, this is done ↵w00t
automagically now git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9526 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-09Move QuitUser into UserManager class, and unstaticize it. This prepares for ↵w00t
some benchmarking lulz on object pooling I plan to do today, as well as making more sense now we *have* a manager class git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9442 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-09Send usermodes on whois if user is self or operedw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9440 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08Allow remote users to bypass Q:Line (why on earth wasn't this the case)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9436 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08Don't check Q:Lines if server is enforcing a nick change (I forgot we had a ↵w00t
way to check this). 'Bug' (it's not really a bug, just admin stupidity) found by Kein. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9434 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08Add todo, add server namew00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9424 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-08Remote REHASH stuff, this drove me nuts but should probably work now.. thx brainw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9423 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-07We were lucky this one didnt bring down the whole devnet (see cmd_part.cpp diff)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9400 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04Allow for custom prefixes as status chars in /notice @#chan etc. Up until ↵brain
now theyve just used a hard coded check on @%+. This slows down writing to a channels users by a small amount, but only when writing to a prefix is happening. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9329 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04Fix bad use of old event based api for spanningtree (this is mostly gone now)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9321 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02Fix another warningbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9270 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02Fix stats, this has never actually displayed the per-class max in stats I, ↵brain
now it does git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9267 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30AWAY notification for WATCH. Numerics are now sent out when a user goes away ↵w00t
(or returns from AWAY), as well as in WATCH L (if the user is online and away). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9227 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30Merge OnCancelAway and OnSetAway, add param awaymsg to OnSetAway (blank when ↵w00t
cancelling), and change return type to int so modules can block away messages by returning nonzero. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9223 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30Commit -Wformat=2 -Wmissing-format-attributes, printf-like functions in ↵aquanight
inspircd now get treated like printf (meaning compile-time check goodness) in GCC git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9217 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22Wheeee for HUGE commits. Convert all numerics to WriteNumeric so that ↵brain
OnNumeric can capture them. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9175 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21Rejig numerics to not step on the 90x range for SASLbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9155 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-21Patch to change MODULES numerics, so we dont get a collision when using ↵brain
AUTHENTICATE. Thanks nenolod. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9148 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19And one more tweak to this.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9137 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-19Fix OnUserRegister() not getting called for if USER sent before NICK on ↵peavey
registration. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9136 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-24Yay, local /rehash is now fixed :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9028 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-24More stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9026 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-24Allow for 'bail' and 'user' parameters to rehash threadbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9022 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-24Theres more to do here. Read the TODOsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9021 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-22Convert remaining InspIRCd::Log() calls to new logging systemaquanight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9001 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-20Wheee, mass commit! this adds const stafety, throwing a compile error if ↵brain
anyone does: "parameters[n] = blahvar;" in a command handler etc. where they REALLY SHOULD NOT fuck with the value and should copy the pointer. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8971 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-14Somebody *eyes a certain norwegian wannabe* defined two commands called ↵brain
WATCH... O_o git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8934 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13Commit patch from danieldg that makes a ton of stuff const-safe for latest ↵brain
warn-happy trigger-happy gcc4 (thanks) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8922 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11Fix trampling on memory in Z/G/K/ELine.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8901 e03df62e-2008-0410-955e-edbf42e46eb7