summaryrefslogtreecommitdiff
path: root/src/cmd_who.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reorder inspircd.h header to topGravatar brain2007-05-211-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7097 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-1/+1
| | | | | | 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
* While I'm on the macro warpath: start using IS_AWAY. Also, show the away ↵Gravatar w00t2007-05-121-1/+1
| | | | | | 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
* We've had an IS_OPER macro for a long time. About time we started using it, ↵Gravatar w00t2007-05-121-5/+5
| | | | | | maybe? :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6990 e03df62e-2008-0410-955e-edbf42e46eb7
* Slightly modify WHO <port> p to allow a port range, e.g. "WHO ↵Gravatar brain2007-05-101-1/+7
| | | | | | 6660-6669,7000,7001 p" would find all users on ports 6660 thru 6669, 7000 and 7001. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6958 e03df62e-2008-0410-955e-edbf42e46eb7
* Small api change with wide reaching effects in modules - Allows modification ↵Gravatar brain2007-05-101-3/+3
| | | | | | of whats displayed by NAMES on a per-nick basis, so we can have UHNAMES in a seperate module to NAMESX (and possibly do some funky other stuff in the future too!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6934 e03df62e-2008-0410-955e-edbf42e46eb7
* If we're having local, we need far too (f)Gravatar brain2007-05-091-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6929 e03df62e-2008-0410-955e-edbf42e46eb7
* Add WHO flag 'l', show only local usersGravatar brain2007-05-091-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6928 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix slightly broken oper checks on +iGravatar brain2007-05-091-5/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6927 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra matches to /WHO. flags aiMp, away, ident, metadata, port numberGravatar brain2007-05-091-10/+55
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6926 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix the other logic bug found by peaveyGravatar brain2007-05-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6924 e03df62e-2008-0410-955e-edbf42e46eb7
* There was some real odd logic in here - thanks owine and HiroPGravatar brain2007-05-091-12/+25
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6923 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix /who to hide users marked invisibile in some way by a moduleGravatar brain2007-05-041-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6870 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix /who thing that dmb spottedGravatar brain2007-03-131-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6671 e03df62e-2008-0410-955e-edbf42e46eb7
* /who tidyup - needs QA'ingGravatar brain2007-03-091-83/+38
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6641 e03df62e-2008-0410-955e-edbf42e46eb7
* Apply <options:hidewhois> in /who results (bug #239); someone should clean ↵Gravatar special2007-03-091-3/+6
| | | | | | up /who soon, perhaps i'll do it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6640 e03df62e-2008-0410-955e-edbf42e46eb7
* Hash rehashing changeGravatar brain2006-12-231-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7
* Jesus, look who's the commit whore today. More header updates, and removal ↵Gravatar w00t2006-12-151-9/+6
| | | | | | of namespacing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactor userrec::chans.Gravatar brain2006-12-141-8/+4
| | | | | | | | | Old way: A vector of ucrec, MAXCHANS in size by default populated by NULLS, so you have to scan the vector to find an empty slot when joining a user, parting a user etc New way: std::map<chanrec*, char> (the char holds their basic core permissions on the channel [voice, halfop, op]) This increases speed a ton, and removes some wtf-age. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5986 e03df62e-2008-0410-955e-edbf42e46eb7
* WhoopsGravatar brain2006-12-071-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5884 e03df62e-2008-0410-955e-edbf42e46eb7
* Bad w00tie bad, /who isnt checking +s for channel /who!Gravatar brain2006-12-071-1/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5883 e03df62e-2008-0410-955e-edbf42e46eb7
* Add WHO flag 'm' to show users who have a mode sequenceGravatar brain2006-11-151-3/+28
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5754 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix crashbug when /who'ing people who arent on a channel ↵Gravatar brain2006-09-061-2/+6
| | | | | | (chan->GetPrefixChar() when chan == NULL is bad, mmk) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5153 e03df62e-2008-0410-955e-edbf42e46eb7
* Command result codes. This isnt finished yet, still got to do most of the ↵Gravatar brain2006-09-061-1/+3
| | | | | | modules, and alter CallCommandHandler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5149 e03df62e-2008-0410-955e-edbf42e46eb7
* Auto loading of commands as shared objects via dlsym (very lightweight ↵Gravatar brain2006-09-031-0/+7
| | | | | | interface, just expects a command_t* pointer) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5118 e03df62e-2008-0410-955e-edbf42e46eb7
* Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include listsGravatar brain2006-08-301-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7
* More prefixchar stuff.Gravatar brain2006-08-231-3/+3
| | | | | | | WARNING: 005 numeric is broken in this commit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5000 e03df62e-2008-0410-955e-edbf42e46eb7
* Odd bits and bobs to keep the numeric sane if the user is insane (like ↵Gravatar brain2006-08-181-1/+1
| | | | | | stskeeps for example) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4961 e03df62e-2008-0410-955e-edbf42e46eb7
* Dont allow USERHOST (and new WHO) on unregistered usersGravatar brain2006-08-181-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4947 e03df62e-2008-0410-955e-edbf42e46eb7
* Just to mess with om's head, remove helperfuncs.h from everywhereGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
* ConfigReader and FileReader now take InspIRCd* to their constructorsGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7
* Move all_opers into class InspIRCdGravatar brain2006-08-101-3/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4857 e03df62e-2008-0410-955e-edbf42e46eb7
* Move IsNick, IsIdent into class InspIRCd, update modules that use it.Gravatar brain2006-08-101-1/+0
| | | | | | | 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
* cmode(), cflags(), cstatus() -> chanrec::GetStatusChar(), ↵Gravatar brain2006-08-101-3/+3
| | | | | | chanrec::GetStatusFlags(), chanrec::GetStatus() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4837 e03df62e-2008-0410-955e-edbf42e46eb7
* FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, ↵Gravatar brain2006-08-101-1/+1
| | | | | | | | | 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
* Move clientlist and chanlist into InspIRCd*Gravatar brain2006-08-091-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4818 e03df62e-2008-0410-955e-edbf42e46eb7
* ServerConfig extern moved into class InspIRCdGravatar brain2006-08-091-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7
* WHEEEEE!!!!!Gravatar brain2006-08-081-3/+3
| | | | | | | | | 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
* Fixed bug in new /who code spotted by jillesGravatar brain2006-08-041-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4718 e03df62e-2008-0410-955e-edbf42e46eb7
* Finish off /WHO (i think it covers everything). Now has a few extra optionsGravatar brain2006-07-281-52/+73
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4581 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed it myself so i can carry on coding1Gravatar brain2006-07-161-12/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4421 e03df62e-2008-0410-955e-edbf42e46eb7
* More WHOGravatar w00t2006-07-161-121/+86
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4420 e03df62e-2008-0410-955e-edbf42e46eb7
* WHO refactoring. In progress currently.Gravatar w00t2006-07-161-0/+102
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4419 e03df62e-2008-0410-955e-edbf42e46eb7
* mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵Gravatar brain2006-07-161-1/+1
| | | | | | | | | | 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
* Move to new include pathGravatar brain2006-04-201-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3898 e03df62e-2008-0410-955e-edbf42e46eb7
* Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵Gravatar om2006-04-081-38/+2
| | | | | | 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
* Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵Gravatar w00t2006-04-061-15/+15
| | | | | | 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
* Fixed to correctly use iteratorGravatar brain2006-03-091-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3583 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is ↵Gravatar brain2006-03-081-1/+1
| | | | | | | | | channel->HasUser(userrec) Yeah its the other way around to the old way, but somehow, seems less backwards to me (its also faster) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3560 e03df62e-2008-0410-955e-edbf42e46eb7
* Whowas refactor - probably wont compile yetGravatar brain2006-03-071-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3523 e03df62e-2008-0410-955e-edbf42e46eb7