Alexander Barton
3ca8703309
irc-oper.c: code cleanup; more documentation
2011-12-25 16:08:00 +01:00
Alexander Barton
2a7dd06ebd
Code cleanup: mostly removing empty lines
2011-02-13 17:52:38 +01:00
Alexander Barton
03628dbeaf
Add Doxygen @file documentation to each source and header file
2011-02-13 17:52:38 +01:00
Florian Westphal
ef3dbf96eb
remove NGIRCd_SignalRehash
...
now that the main signal handling is done from the dispatcher
loop we can call NGIRCD_Rehash() directly.
the /REHASH handler can queue the Rehash() function for
execution by sending a SIGHUP. It will be run when we
return back to the dispatch loop.
2010-09-11 11:36:12 +02:00
Alexander Barton
5462c6c50f
Don't #include client.h when conn.h/conn-func.h is already included
...
conn.h and cinn-func.h both already #include client.h, so it is
not needed to do it twice.
2010-06-30 23:49:52 +02:00
Alexander Barton
cc336b7558
Only #include resolve.h if it is really needed
2010-06-29 22:55:27 +02:00
Florian Westphal
28ca31e576
Remove limit on max number of configured irc operators.
2009-11-07 17:42:54 +01:00
Alexander Barton
55c04e691d
Make sure forwarded CONNECT commands are handled correctly
2009-09-30 16:00:06 +02:00
Alexander Barton
9918dfc1d5
Use functions provided by op.c "module"
...
Local functions Check_Oper() and No_Privileges() have been replaced by
global functions in op.c "module": Op_Check() and Op_NoPrivileges().
2009-09-30 16:00:06 +02:00
Alexander Barton
113bd34878
Allow forwarding of CONNECT commands.
...
The syntax of the CONNECT command now is:
- CONNECT <server-id>
- CONNECT <server-id> <port>
- CONNECT <server-id> <port> <target>
- CONNECT <server-id> <port> <host> <my-pwd> <peer-pwd>
- CONNECT <server-id> <port> <host> <my-pwd> <peer-pwd> <target>
Note: the configuration option "AllowRemoteOper" mus be enabled on the
target server to allow forwarding of CONNECT commands.
2009-09-30 16:00:06 +02:00
Alexander Barton
4a3e40bc95
Check_Oper(): check origin of forwarded messages instead of server.
2009-09-30 16:00:05 +02:00
Alexander Barton
45b1a45c97
No_Privileges(): handle forwarded messages.
2009-09-30 16:00:05 +02:00
Alexander Barton
7d6de7c352
IRC_SendWallops(): support format string and variable parameter lists.
2009-09-30 16:00:05 +02:00
Alexander Barton
30b584c2e8
CONNECT, DISCONNECT: generate WALLOPS messages
2009-09-30 16:00:05 +02:00
Alexander Barton
eaaf0c3bd5
New function IRC_SendWallops().
...
Implement new global function IRC_SendWallops() that can be called by
other functions to generate WALLOPS messages to users with +w mode.
2009-09-30 16:00:05 +02:00
Alexander Barton
9a7499af8b
Code cleanup of IRC_DISCONNECT().
2009-09-30 16:00:05 +02:00
Alexander Barton
926204cacd
New local functions Check_Oper() and No_Privileges().
2009-09-30 16:00:05 +02:00
Alexander Barton
3bf0c6f3b9
Bad_OperPass(): code cleanup.
2009-09-30 16:00:05 +02:00
Florian Westphal
544b9884f4
remove or translate old comments
2009-04-21 20:58:30 +02:00
Florian Westphal
4b9e52eb4d
implement /WALLOPS as described in RFC 2812, section 4.7.
2007-08-02 10:14:26 +00:00
Florian Westphal
2275add327
Add new server config option to disable automatic connect. (Tassilo Schweyer)
2007-06-28 05:15:12 +00:00
Alexander Barton
3e8978d836
Allow DIE to send a message to all locally connected clients. Closes bug #48 .
2006-07-23 15:43:18 +00:00
Alexander Barton
dd3a3bc603
Use some more specific data types (e. g. pid_t vs. int), make "SPLint" happy :-)
2006-05-10 21:24:01 +00:00
Florian Westphal
87f4b1c6f6
Client_GetFromConn() removed and replaced with new function Conn_GetClient()
2006-04-23 10:37:27 +00:00
Alexander Barton
77f54693ef
Removed unnecessary #define of "LOCAL", now use plain C "static" instead.
2005-07-31 20:13:07 +00:00
Florian Westphal
70facb7f6e
made a few config options unsigned.
2005-07-11 14:11:35 +00:00
Florian Westphal
fcf65beea4
changed formatting to match ngircd coding style
2005-06-12 18:02:09 +00:00
Florian Westphal
74424cb1a5
set 3 second penalty after failed /oper command.
2005-06-12 17:18:27 +00:00
Florian Westphal
8adff59223
Remove INT, LONG, BOOLEAN, STATIC, CONST, CHAR datatypes.
...
use stdbool.h / inttypes.h if available.
2005-03-19 18:43:48 +00:00
Alexander Barton
e7f8782831
Added missing include of "match.h".
2005-03-03 08:36:19 +00:00
Alexander Barton
490c9d04d7
New configuration option "Mask" for [Operator] sections to limit OPER command.
2005-03-02 16:07:30 +00:00
Alexander Barton
4e485443d3
- New commands CONNECT and DISCONNECT.
...
- Validate operator status before syntax checks.
2002-12-31 16:10:55 +00:00
Alexander Barton
a2544e496c
- Cleaned up handling of server configuration structures.
2002-12-30 00:01:42 +00:00
Alexander Barton
15e4f67402
- Nicer log messages ;-)
2002-12-27 13:17:32 +00:00
Alexander Barton
43a4bc5b8b
- New signal handler.
2002-12-19 04:29:59 +00:00
Alexander Barton
ba767481d9
- removed old ID tag
2002-12-12 12:33:14 +00:00
Alexander Barton
490f28ffd1
- new file header format (in english);
...
- new file ident semantics.
2002-12-12 12:24:18 +00:00
Alexander Barton
1e59617d2c
- Parser auf Befehlstabelle umgestellt.
2002-11-30 15:04:57 +00:00
Alexander Barton
4eb57b590b
- IRC_RELOAD() in IRC_REHASH() umbenannt.
2002-11-22 23:32:29 +00:00
Alexander Barton
a5c9229084
- neue Funktion IRC_RELOAD().
2002-11-22 17:58:41 +00:00
Alexander Barton
1256f34736
- neuen Befehl CONNECT begonnen zu implementieren.
2002-09-03 23:54:59 +00:00
Alexander Barton
7d30c8cebc
- Hmpf. "Verfruehtes" CVS-Update einiger Source-Files zurueckgenommen ...
2002-08-26 23:47:58 +00:00
Alexander Barton
d645ce86e9
- Bei einem JOIN in einen persistenten Channel werden nun evtl. zu setzende
...
User-Modes korrekt in den Channel gemeldet.
2002-08-26 23:39:22 +00:00
Alexander Barton
c2f60abe55
- Anpassungen an pre-ANSI-Compiler,
...
- Includes aufgeraumt: Header includieren keine anderen mehr.
2002-05-27 13:09:26 +00:00
Alexander Barton
7d4e9a019f
- string.h wird nun includiert.
2002-04-04 13:03:39 +00:00
Alexander Barton
6b58ab8427
- einige Log-Meldungen werden nun auch als Server Notice verschickt.
2002-03-27 20:52:58 +00:00
Alexander Barton
ca33cbda05
- externe portab-Header werden nicht mehr benoetigt/benutzt, dadurch
...
einige Aenderungen an diversen Source-Dateien und Headern.
- Dateien enthalten keine CVS-History mehr.
2002-03-12 14:37:51 +00:00
Alexander Barton
2ee05c9a68
- Source in weitere Module fuer IRC-Befehle aufgesplitted.
2002-03-03 17:15:11 +00:00