Alexander Barton
d7b5dd1bbf
IRC_SERVER(): Code cleanup
2012-10-29 11:33:49 +01:00
Alexander Barton
384f965fba
NJOIN: correctly reset channel level flags
...
This fixes commit 7b01bb83
.
Bug reported by DNS777 <dns@rbose.org>, thanks!
2012-09-26 23:51:48 +02:00
Alexander Barton
0d67be3f30
Fix some "whitespace glitches"
...
Some have been introduced by commit 7b01bb83
, some are older.
2012-09-11 12:48:51 +02:00
Alexander Barton
f37600ee01
Merge branch 'xop' of https://github.com/kart0ffelsack/ngircd into bug92-xop
...
* 'xop' of https://github.com/kart0ffelsack/ngircd :
Tests and documentation for xop
Implemented xop support
Conflicts (because of merge of the 'cmode-M' branch):
src/ngircd/channel.c
src/ngircd/defines.h
src/ngircd/messages.h
2012-09-11 12:30:19 +02:00
Brett Smith
be97fa8ab1
Indentation and style fixes.
2012-08-23 14:18:15 -04:00
Brett Smith
0d5de60584
Move client password from the Client to the Connection struct.
...
This is a relatively naive implementation, basically doing the bare minimum
necessary to make the switchover go. Subsequent commits can focus on
improving the implementation.
2012-08-23 11:07:08 -04:00
Sebastian Köhler
7b01bb833f
Implemented xop support
...
3 new channel user modes have been added.
Half Op: +h(Prefix: %) can set the channel modes +imntvIbek
and kick all +v and normal users.
Admin: +a(Prefix: &) can set channel modes +imntvIbekoRsz and kick all
+o, +h, +v and normal users.
Owner: +q(Prefix: ~) can set channel modes +imntvIbekoRsz and kick all
+a, +o, +h, +v and normal users
2012-08-06 04:42:09 +02:00
Alexander Barton
770a58ac6d
Generate WALLOPS message on SQUIT from IRC operator
...
So SQUIT now behaves like CONNECT and DISCONNECT commands, when called
by an IRC operator (and not received from an other server).
2011-03-21 23:52:42 +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
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
Alexander Barton
881b9af251
Generate WALLOPS message on operator-generated SQUIT
2009-09-30 16:00:06 +02:00
Alexander Barton
294320ed62
Enable SQUIT command for IRC Operators
...
This patch enables IRC Operators to use the SQUIT command as specified in
RFC 2812, section 3.1.8 "Squit".
When forwarding SQUIT commands, the server connected to the target will
drop the connection (not the target server itself!).
Please note:
- the configuration option "AllowRemoteOper" mus be enabled on the
server disconnecting the target to allow forwarding of SQUIT commands.
- if the remote server is configured to establish the connection, it
will just do this; so the disconnect is not permanent in this case!
2009-09-30 16:00:06 +02:00
Alexander Barton
bce16c2864
Code cleanup of IRC_SQUIT() in preparation to deal with bug #73 .
2009-09-30 16:00:05 +02:00
Alexander Barton
3b37ad334b
IRC_SERVER(): code cleanup, remove unneeded variable
2009-09-11 00:41:12 +02:00
Florian Westphal
b545d38ae4
irc-server: do not remove hostnames from info text
...
that code does not really make sense -- the info
text is freely cofngiureable and des not follow a specific
format.
Also, that "+2" might have caused invalid memory accesses.
2009-04-22 23:15:17 +02:00
Florian Westphal
544b9884f4
remove or translate old comments
2009-04-21 20:58:30 +02:00
Alexander Barton
a60465be3e
Server links: detect RFC 1459 mode direct after SERVER command
...
This patch allows ngIRCd to detect right after receiving the SERVER command
from the peer whether the RFC 1459 compatibility mode must be used or not.
And it fixes the announcement of users during establishing new server links
with such peers.
2008-09-23 11:47:17 +02:00
Alexander Barton
47ca178a21
Introduce option to configure the maximum nick name lenth in ngircd.conf
...
- New configuration option "MaxNickLength" to specify the allowed maximum
length of user nick names. Note: must be unique in an IRC network!
- Enhanced the IRC+ protocol to support an enhanced "server handshake" and
enable server to recognice numeric 005 (ISUPPORT) and 376 (ENDOFMOTD).
See doc/Protocol.txt for details.
2007-11-21 12:16:33 +00:00
Alexander Barton
53b98fd7e9
Fixes the wrong logging output when nested servers are introduced
...
to the network as well as the wrong output of the LINKS command.
2007-11-20 20:02:40 +00:00
Alexander Barton
06bfb3adfb
Fix code to compile using K&R C compiler and ansi2kr again.
2007-11-18 15:05:35 +00:00
Florian Westphal
fa7bb2790a
moved invite/ban lists to channel structure
2006-12-07 17:57:20 +00:00
Florian Westphal
37602d1523
Log(LOG_DEBUG, .. -> LogDebug()
2006-12-02 14:10:48 +00:00
Florian Westphal
6e105bf87e
channel maxusers now unsigned long
2006-10-06 21:32:58 +00:00
Alexander Barton
27d947fb7d
Allow PASS syntax defined in RFC 1459 for server links, too.
...
Removed client status CLIENT_GOTPASSSERVER.
2006-10-01 19:05:00 +00:00
Alexander Barton
6d3686e73d
Send invite and ban lists only once and not repeatedly for every channel.
2006-04-30 21:31:43 +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
3012c232eb
Fixed resolver when using IDENT lookups, cleaned up code.
2004-05-11 00:01:11 +00:00
Alexander Barton
dd59820051
Synchronize INVITE- and BAN-lists if the peer requests it:
...
server flag "L". And better debug logging.
2004-04-25 15:43:18 +00:00
Alexander Barton
57c7e23622
Added #include for strings.h to fix compiler warnings.
2004-01-17 03:17:49 +00:00
Alexander Barton
c40592d2ce
Removed "USE_" prefixes of configuration #defines.
2003-12-26 15:55:07 +00:00
Alexander Barton
6647da58fc
NJOIN: Fixed propagation of user channel modes.
2003-07-09 18:45:56 +00:00
Alexander Barton
feafb6cb2e
Don't forward NJOIN's for unknown nick names.
2003-04-20 23:09:26 +00:00
Alexander Barton
fa80012e71
- Enhanced CHANINFO command for channel keys and user limits.
2003-01-08 22:04:43 +00:00
Alexander Barton
437f2c335f
- Renamed functions now found in "conn-zip.c".
2002-12-30 16:07:50 +00:00
Alexander Barton
a2544e496c
- Cleaned up handling of server configuration structures.
2002-12-30 00:01:42 +00:00
Alexander Barton
b316c380ad
- replaced some calls to sprintf() with snprintf() -- more secure :-)
2002-12-26 17:14:48 +00:00
Alexander Barton
695631b298
- replaced a lot of strcpy() calls with strlcpy() which is more secure.
2002-12-26 17:04:54 +00:00
Alexander Barton
6626395c88
- replaced a lot of strcat() calls with strlcat() which is more secure.
2002-12-26 16:48:14 +00:00
Alexander Barton
0ced4181b0
- replaced all strncpy()'s and strncat()'s with strlcpy() and strlcat().
2002-12-26 16:25:43 +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
ee2c0f7701
- SQUIT wird nicht mehr zweimal fuer einen Server verschickt.
2002-11-28 14:31:43 +00:00
Alexander Barton
65f3adca21
- Unterstuetzung fuer komprimierte Server-Server-Links implementiert.
2002-11-26 23:07:24 +00:00
Alexander Barton
b2615bcc76
- Server identifizieren sich nun mit asyncronen Passwoertern.
2002-11-19 12:50:20 +00:00
Alexander Barton
9523e28179
- IRC_Server() ruft nun Conn_SetServer() zur Server-Registrierung auf.
2002-11-05 14:18:59 +00:00
Alexander Barton
ec474a4bd2
- "format-string-bugs", die zum Abbruch des Servers fuehrten, behoben.
2002-10-04 11:21:46 +00:00
Alexander Barton
3dc1621200
- IRC+-Protokoll ist nun abschaltbar.
2002-09-07 17:57:31 +00:00
Alexander Barton
938abb0236
- CHANINFO wird auf Server-Links gesendet, wenn unterstuetzt.
2002-09-03 23:55:44 +00:00