2955 Commits

Author SHA1 Message Date
om
4fa0251cfb Changing by-value parameters to const references
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3605 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 21:11:50 +00:00
om
0da6981ee1 Mostly formatting cleanup, rename a 'Ptr' to a more meaningful 'chan', remove some pointless nested if()s checking the same thing at each other
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3604 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 20:49:49 +00:00
brain
2b4af06e1c Delete unknown sockets on sight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3603 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 20:35:49 +00:00
brain
0cf08426b2 Speedups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3602 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 20:16:43 +00:00
brain
7a3d08f06c Tidyup to pass some stuff by reference (much faster, no copy involved)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3601 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 20:11:07 +00:00
brain
9fd6aff54f Strlen bashing.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3600 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 18:18:18 +00:00
brain
797c8ac769 Improved to avoid strlen
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3599 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 18:09:19 +00:00
brain
2b8c7fada7 Changed to unsigned char to get rid of warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3598 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 15:43:10 +00:00
brain
b15212c646 lowertab -> lowermap
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3597 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 15:42:31 +00:00
brain
bb81e1a5f3 Improved strhashcomp with no allocations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3596 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 15:41:25 +00:00
brain
bff75471cf Segfault-causing typo (wrong var used for a loop, whoops)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3595 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 15:34:19 +00:00
brain
f5defd93b7 Typical. 0 and 1 to choose from, and i pick the wrong one. (back to front binary)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3594 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 14:33:54 +00:00
brain
39e872a70f Forgot to declare var
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3593 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 14:28:04 +00:00
brain
c76cee8748 UMode tweaks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3592 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 14:23:49 +00:00
brain
23101be0f2 UM_WALLOPS had value 3 which was a combination of UM_SERVERNOTICE and UM_INVISIBLE :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3591 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 14:18:33 +00:00
brain
368022378b Modes the wrong way around
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3590 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 14:13:16 +00:00
brain
d4d14b2a9c (Needs test) Improved userlist()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3589 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 13:54:13 +00:00
brain
c330b24501 Added userrec::modebits - fast way of checking if user has +swi rather than an icky strchr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 13:21:35 +00:00
om
68da120812 Fix printf format to get rid of compile warning (using %d for a long, change to %ld)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3587 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 12:40:52 +00:00
brain
8dd900c539 iterator hell
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3586 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 12:37:31 +00:00
brain
09027c6388 Fixed to use iterator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3585 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 12:32:53 +00:00
brain
3a484a4afd Correctly use iterators and pointer to ucrec
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3584 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 12:28:35 +00:00
brain
98fd8145d8 Fixed to correctly use iterator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3583 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 12:23:04 +00:00
brain
2dfc364bac Change to ucrec* iterators
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3582 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 12:01:05 +00:00
brain
dbbe105fbb Grant and revoke now use iterators
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3581 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 11:40:25 +00:00
brain
b251c1feb7 Fixed to use iterators
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3580 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 11:34:47 +00:00
brain
c2a5839bcb Probably wont compile yet - purge_empty_channels refactor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3579 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 11:24:30 +00:00
brain
2e83826fd3 mptr++ not *mptr++!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3578 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 09:31:37 +00:00
om
c3c2ee8055 Fix buffer overflow (visible in /mode #channel)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3577 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 03:01:11 +00:00
w00t
fe12fdb2a4 Cleanup.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3576 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 01:12:18 +00:00
brain
caeaab573d Better calculation of LUSERS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3575 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 01:09:44 +00:00
brain
412ab8a25a Changed LUSERS to show global current to not include unregistered connections
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3574 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 01:05:43 +00:00
w00t
60f91c5c3c More of the same cleanup :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3573 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 00:39:13 +00:00
brain
f6becbd4e6 Don't show channels where all users are invisible and therefore usercount is 0
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3572 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 00:35:57 +00:00
w00t
6b43da7511 More cleanup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3571 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 00:29:20 +00:00
w00t
9c65ad17c7 Add 'you are a nub' messages to /squit and /connect stubs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3570 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 00:18:28 +00:00
brain
945dda1089 Wrong var used here, oooops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3569 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 00:18:20 +00:00
w00t
b2ee0b11f4 Update to Start() credits, now refers users to /info output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3568 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 00:13:22 +00:00
w00t
7b0568e9d1 More cleanup, moved Om and myself to core team
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3567 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 00:08:16 +00:00
brain
e68c10bb71 Speedup of list
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3566 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 00:04:39 +00:00
brain
cdf14e8f5e Calling a method of a null object due to refactoring and HasUser - fixed
(Thanks Douglas)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3565 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 00:02:12 +00:00
w00t
a1daff1996 Reformat according to coding guidelines.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3564 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 23:45:37 +00:00
brain
938924e372 These modules were using deprecated Server::IsOnChannel. They arent any more :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3563 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 23:33:24 +00:00
brain
33df390bff Removed deprecated Server::IsOnChannel (was a C++-ish wrapper to the C-ish has_channel, no longer needed)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3562 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 23:26:30 +00:00
brain
798a7139ab Fixed externs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3561 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 23:21:59 +00:00
brain
aaf5226111 Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is 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
2006-03-08 23:16:18 +00:00
brain
ec97c162f8 Removed declarations of ancient and misspelled functions :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3559 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 21:34:11 +00:00
brain
6b2c5f92c4 cmode was declared here too - declaration removed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3558 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 21:17:38 +00:00
brain
689c27adfd cmode now returns const char* as it returns a pointer to a literal string and shouldnt be messed with
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3557 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 21:16:05 +00:00
brain
21cf60233c Got rid of all that ugly char* cast crap (todo: change docs to reflect change)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3556 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08 18:59:55 +00:00