summaryrefslogtreecommitdiff
path: root/src/cmd_whois.cpp
AgeCommit message (Collapse)Author
2007-05-19Windows support. Tested and working to compile on freebsd and linux. Next ↵w00t
step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12While I'm on the macro warpath: start using IS_AWAY. Also, show the away ↵w00t
message all the time, don't check IS_LOCAL. We used to not propegate away messages, but that hasn't been the case for ..fucking years? :p. WHOIS works correctly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7002 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-12We've had an IS_OPER macro for a long time. About time we started using it, ↵w00t
maybe? :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6990 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11Make sure we always use the correct index for the nickname (thanks djGrr)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6986 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10Patch by djGrrr to WHOIS to fix up another potential information leak, now ↵w00t
remote and local whois work the same way really :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6966 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10Remove redundant if (), pointed out by djGrrr.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6965 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10Much thanks to djGrrr for being helpful. Give this a go.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6964 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10FIX: Don't show time for remote clients on /whois nickw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6963 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10I got very confused here.. let's fix thisw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6962 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10Clarify some of the comments here..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6961 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10(will be tested like nowish): Modified version of djGrrr's patch to re-fix #286.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6960 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10If hidewhois is enabled, don't show idle time unless requested via remote ↵w00t
/whois nick nick form, this stops serverhopping to find where someone is. Thanks djGrrr. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6945 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-04Cloaking of WHOIS didnt work quite right, fixedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6874 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-04Apply visibility state to whois, next stop, /whobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6869 e03df62e-2008-0410-955e-edbf42e46eb7
2007-03-31Tweak to numeric 378: is connecting from ident@hostw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6721 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-27fix so that OnWhois is triggered for remote whois, and remove smelly bold ↵brain
chars from m_botmode's numeric output. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6444 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-15Jesus, look who's the commit whore today. More header updates, and removal ↵w00t
of namespacing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28Add 'dest' parameter to OnWhoisLine, contains the user being whois'ed (we ↵brain
need this for +H and probably the stuff w00t is doing too) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5573 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28Add support for OnWhoisLine, which allows modules to change or drop any line ↵brain
of whois before its sent to a user git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5570 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-10Move Spacify() into irc:: namespace as multiple modules use it nowbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5200 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-06Command result codes. This isnt finished yet, still got to do most of the ↵brain
modules, and alter CallCommandHandler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5149 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03Auto loading of commands as shared objects via dlsym (very lightweight ↵brain
interface, just expects a command_t* pointer) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5118 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-30Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include listsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-18Odd bits and bobs to keep the numeric sane if the user is insane (like ↵brain
stskeeps for example) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4961 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Just to mess with om's head, remove helperfuncs.h from everywherebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11extern time_t TIME -> InspIRCd::Time()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4873 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11ConfigReader and FileReader now take InspIRCd* to their constructorsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10Mass-tidyup of module global vars, theyre no longer global vars.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4856 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10Move IsNick, IsIdent into class InspIRCd, update modules that use it.brain
Change message.h to just a #warning saying its deprecated, and remove all use of it from the core :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4847 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, ↵brain
GetClass, WriteOpers, GetServerDescription -> into classes ServerConfig takes InspIRCd pointer in its constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4832 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09Move more stuff into userrecbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4823 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09ServerConfig extern moved into class InspIRCdbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08WHEEEEE!!!!!brain
All of: Write(), WriteTo(), WriteFrom(), WriteServ() are now methods of userrec. Write_NoFormat(), WriteTo_NoFormat(), WriteFrom_NoFormat(), WriteServ_NoFormat() are now std::string-taking overloaded methods of the functions above All modules updated to use new syntax, my fingers hurt :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4798 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-04Change to using userrec::ip as a sockaddr to store port, ip and address ↵brain
family, rather than userrec::ip4 and userrec::port. This allows us to handle remote ipv6 users on an ipv4 server, and vice versa. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4694 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01The IPV6 stuff compiles now, with compile-correct ipv6 code. I dont know if ↵brain
this works yet. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4611 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28Change all references to voodoo numbers (7, 3 etc) to the new bitwise ↵brain
constants for user->registered Change a lot of user->fd > -1 to use the IS_LOCAL() macro git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4569 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Created new class irc::commasepstream.brain
Will read comma seperated lists and works identically to irc::tokenstream It's re-entrant so we can run two of them together for JOIN git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4412 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵brain
parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09Added Spacify() function local to cmd_whois.cpp which translates _ in oper ↵brain
names to " " git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4254 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-01Change WriteChannelWithServ and it's _NoFormat to take a const char* ↵om
servername rather than char* - although it doesn't seem to be used :< Lose some more casts in m_spanningtree, unneeded because of above changes Make xline_set_creation_time() take const char* rather than char* for it's first parameter, lose more casts in spanningtree because of this Make do_whois take a const char* rather chan char* nick, lose yet more casts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4095 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-04Fix for an/a and vowel detection in "is an ircop" numeric, noticed by Smartysbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3988 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-20Move to new include pathbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3898 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵om
going into inspircd.*, doesn't look like I've broken anything... :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-06Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵w00t
THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04move do_whois to cmd_whois, i'm stopping now. really.om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3825 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Whowas refactor - probably wont compile yetbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3523 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-15Updated copyrights in headers etc using perl inplace editbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-11Changed fd_ref_table from 65536 to more correct MAX_DESCRIPTORSbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2769 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Fixed LoopCall method callsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2541 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Split all commands into seperate files and redid command system to take ↵brain
classes, not function pointers (function pointers suck ass) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2534 e03df62e-2008-0410-955e-edbf42e46eb7