4543 Commits

Author SHA1 Message Date
brain
89a8a819fa New events for special. Event id's "new_server" and "lost_server". The data is a pointer to a char* containing the server name.
Eventally, i might expand this to include more data about the server such as its 'gecos' field etc, but not just yet. Let me know what data you want first.
Event source is valid and will point at the protocol module.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5623 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-01 17:38:35 +00:00
special
5515872a23 Fixed another overflow, identical to the last one
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5622 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-01 17:10:15 +00:00
special
7cc96f2b1c Fixed a little overflow, noticed by satmd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5621 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-01 17:01:32 +00:00
brain
477b0cea88 Update this too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5619 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-01 08:46:02 +00:00
brain
015930fbdb Remove <helpop file>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5618 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-01 08:44:18 +00:00
brain
d248ac1a94 Remove <censor file> directive, we've had <include> for years now, make use of it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5617 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-01 08:13:17 +00:00
brain
bbecfb8b37 Fix broken notice (relatively minor, the notice can be turned off)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5616 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 22:30:58 +00:00
brain
6a7479609a 1.1.0b4+FartGas. Powerful and strong, and drives back the competition.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5614 e03df62e-2008-0410-955e-edbf42e46eb7
v1.1.0b4
2006-10-31 21:57:21 +00:00
brain
be69cdfc3d Dont worry this is only comments, not worth rebuilding for
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5613 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 21:19:39 +00:00
brain
53707ca261 We should be fine without oneshot, i'll test this.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5612 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 21:12:01 +00:00
brain
ee034e0a5c Fix a whoopsy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5611 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 20:47:25 +00:00
brain
986cae8a9d Set write error when detected
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5610 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 20:44:47 +00:00
brain
dc5d99a954 Error set handlin g for select socketengine, tidyup epoll
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5609 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 20:43:47 +00:00
brain
84fe55db16 Close an inspsocket on getting error state
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5608 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 20:36:38 +00:00
brain
193b540aa7 Socket error state stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5607 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 20:32:01 +00:00
brain
4bb033449d Start of stuff to handle socket error state
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5606 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 20:30:16 +00:00
brain
f4a1bfe7c0 We dont want kqueue to go into an infinite loop when netsplitting, do we.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5605 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 18:30:25 +00:00
special
d0a0de4044 Removed OnRawMode - this hasn't been called at all for awhile now, so it was completely worthless. I even tested it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5604 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 18:06:33 +00:00
brain
02d989887a Add peaveydk to contributors section
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5603 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 17:56:45 +00:00
brain
677c569364 Remove some debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5602 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 17:50:26 +00:00
brain
857b9beed4 Fix the makefile confusion removal of these headers creates
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5601 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 17:45:34 +00:00
brain
372656dbe5 Update configure, remove a bunch of deprecated makefiles that have been just a #warning for about 1000 revs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5600 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 17:42:09 +00:00
brain
be77f42a97 Incorporate stats p patch by peaveydk (shows port numbers and number of clients on each port)
Tidy up cmd_stats.cpp in general, turn it into a large case statement


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5599 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 17:06:32 +00:00
brain
e81b8faed7 Test commit 2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5598 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 13:16:59 +00:00
brain
ff6e512046 Test commit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5597 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 13:11:07 +00:00
brain
f66585e27a Whack unused var warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5596 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 08:28:28 +00:00
brain
b6b8c9dac8 Set flags correctly when receiving a module-requested write event
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5595 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 08:21:35 +00:00
brain
6e3dbb2cd7 Tidy up WaitingForWriteEvent stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5594 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 08:16:14 +00:00
brain
83a688082e Fix for crash found by eggy when a user without a cert tries to oper on a fingerprinted oper tag
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5593 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 22:48:51 +00:00
brain
4171efac17 Document SocketEngine::WantWrite()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5591 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 20:51:52 +00:00
brain
1aaee19ee9 Fix broken quits (i broke them by taking out a check i didnt think was required -- it was. RTFS!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5590 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 20:38:32 +00:00
brain
ce82b3bd6b Remove very verbose debugging of event system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5589 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 20:25:08 +00:00
brain
f7379dfaf5 Make this properly obey the write/read states. This ZOOMS now.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5588 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 20:01:21 +00:00
brain
2a31fe6038 Select is now done, and some debug removed. Not that anyone really should be using select()...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5587 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 19:49:13 +00:00
brain
b8f4ba8214 fix for (less severe) laggehness
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5586 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 19:31:41 +00:00
brain
320f16fe12 Fix for laggehness
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5585 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 19:31:26 +00:00
brain
46513e8bd2 For users, we now only write when the socketengine says theyre writeable, setting WantWrite after we call userrec::Write().
The old way was to always try and flush the buffer after every read, regardless of wether the socket was writeable


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5584 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 18:59:04 +00:00
w00t
2c1dd9be2b Add m_hidechans: Adds usermode +I to hide an oper's channels from non-opers. Also, we don't want to load a .h in the config, Brain :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5583 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 18:48:41 +00:00
brain
d9147559a3 Not tested yet: Write and read at the same time in kqueue
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5582 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 18:45:04 +00:00
w00t
b27cdbef04 m_hideoper hooked the wrong event, fixed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5581 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 18:40:22 +00:00
brain
dd168c56c9 WARNING: This commit breaks kqueue and select -- work in progress!
epoll now allows both a write and a read event on a socket at the same time.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5580 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-30 18:22:36 +00:00
brain
2aa6c66308 Test commit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5579 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-29 01:32:14 +00:00
brain
db651797de Add <options:deprotectself> which can allow a +qa user to remove their own +q or +a. The default of having this off makes inspircd act like it always has (only allow ANY removal of these modes via services or a founder)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5578 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28 20:07:31 +00:00
brain
494d7f7489 * Fix removal of user modes when unloading the mode letter (this actually works now)
* Fix m_stripcolor channel mode +S (was unsettable as it had some user mode checks in it)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5577 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28 19:42:29 +00:00
brain
1085e6aa40 Add and document m_hideoper, used to hide oper status from non-opers.
Note: This module ONLY conceals numeric 313. Any other cloak-and-dagger
private eye stuff you want to do, like setting your host back to a non-
oper host, you must do yourself, this module wont mess with anything else
on your behalf.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5576 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28 18:52:54 +00:00
brain
124bc04e84 Fix these too!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5575 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28 18:45:13 +00:00
brain
273b3c05c5 And fix typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5574 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28 18:42:38 +00:00
brain
94db28f9b3 Add 'dest' parameter to OnWhoisLine, contains the user being whois'ed (we 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-28 18:41:34 +00:00
brain
b7c7e603e9 Dont let users set this mode!!!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5572 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28 18:34:52 +00:00
brain
33cfef9463 Fix some next_call stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5571 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28 18:16:23 +00:00