Alexander Barton
259c314d14
Remove imp.h and exp.h header files
...
These include files don't have a function any more, remove them.
2014-03-17 00:17:02 +01:00
Alexander Barton
384b27cee0
IRC_INVITE(): Code cleanup
2014-02-02 00:27:24 +01:00
Alexander Barton
20b52fe33d
Correctly use cloaked IRC masks on "INVITE nickname"
...
The cloaked IRC mask of a user is his visible mask, so the daemon has
to use it for generating the "one time" entries for the invite list of
the given channel.
Without this patch, ngIRCd records the real IRC mask which will never
match while the target client is "+x", and even worse, will disclose
the real mask on "MODE #channel +I" commands :-/
Bug reported by Cahata on #ngircd, thanks!
2014-01-27 23:05:29 +01:00
Federico G. Schwindt
48ea69d778
Remove unneded IRC_SetPenalty() calls
...
IRC_WriteErrClient() already calls IRC_SetPenalty(). While here convert
some IRC_SetPenalty() + IRC_WriteStrClient() to IRC_WriteErrClient().
2013-11-06 18:28:09 +00:00
Federico G. Schwindt
bcb45da1b4
Add more penalty times
...
Ensure before every numeric 461 there is a call to IRC_SetPenalty().
2013-09-06 23:02:01 +01:00
Federico G. Schwindt
08f9d31d60
Rework check for number of parameters
...
Move most of the checks that return numeric 461 into Handle_Request().
2013-09-06 23:01:59 +01:00
Alexander Barton
904c8a4375
Introduce new function IRC_WriteErrClient()
...
This function is used to send "error messages", including numerics,
back to clients and to automatically enforce a 2 second penalty. With
this patch, all error results enforces a delay for the client.
All callers of IRC_WriteStrClient(ERR_xxx) have been converted.
Please note that this patch prolongs the time "make check" needs
to complete its tests, because of lots of new enforced penalties ...
2013-08-07 00:10:50 +02:00
Federico G. Schwindt
c74115f25c
Simplify mode checking on channels and users within a channel
...
Add Channel_HasMode() and Channel_UserHasMode() and use it where
possible.
2013-08-04 18:28:04 +01:00
Alexander Barton
3228f1b267
irc-op.c: use irc-macros.h
2013-02-24 18:51:54 +01:00
Alexander Barton
e8f512bfe7
irc-op.c: Update source code documentation
2013-02-24 18:50:12 +01:00
DNS777
de453d71cb
Implement channel mode 'V' (invite disallow)
...
If the new channel mode "V" is set, the INVITE command becomes invalid
and all clients get the new ERR_NOINVITE_MSG(518) reply.
Unreal and InspIRCd uses this mode, too.
This closes bug #143 .
2012-10-06 20:49:35 +02: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
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
f92a614a35
Enable KICK to be handled from remote servers and from services.
2008-09-23 11:53:16 +02:00
Dana Dahlstrom
97cc58fb13
Invite: prefix last argument with colon when necessary.
2008-05-05 16:12:41 +02:00
Bryan Caldwell
3d8eda9c86
Allow KICK to handle comma-delimited lists (of channels, nicks).
...
includes test cases.
[fw@strlen.de:
- move code around to avoid duplication
- use const where possible
- integrate test case]
2008-05-05 16:12:41 +02:00
Florian Westphal
3283d275ba
Invite: Send RPL_AWAY to client sending the invite if target is away.
2008-05-05 15:52:41 +02:00
Florian Westphal
452fb28394
IRC_INVITE: coding style cleanup.
2008-05-05 15:39:54 +02:00
Florian Westphal
fa7bb2790a
moved invite/ban lists to channel structure
2006-12-07 17:57:20 +00:00
Florian Westphal
e2aacff7d4
s/Log(LOG_DEBUG/LogDebug(/ , translated comments, etc.
2006-08-12 11:58:21 +00:00
Alexander Barton
aa25cd7da2
Reorder #includes, necessary due to removal of #include "defines.h" in
...
the client.h header file.
2005-04-27 07:38:00 +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
64d330b726
Fixed handling of already existent entries in invite and ban lists:
...
the attempt to add an already existent entry is no error, it must
be propagated across servers (but not added to the list!).
2004-04-09 21:41:52 +00:00
Alexander Barton
ff2c1efae8
Fixed abort() when inviting users to nonexistent channels.
2003-12-05 11:57:28 +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
f3c0c7c0b3
- Parameter von List_Add{Invited|Banned}() erweitert.
2002-09-08 17:05:25 +00:00
Alexander Barton
ce4b719459
- ein INVITE wird auch dann gespeichert (obwohl der Channel nicht +i ist), wenn der Client gebanned ist.
...
- den BAN-Befehl gibt es gar nicht ;-)
2002-09-08 00:52:39 +00:00
Alexander Barton
b1f4200608
- bei INVITE wurde im Antwort-Status-Code das falsche Prefix verschickt.
2002-07-25 11:36:16 +00:00
Alexander Barton
81a26d988a
- Lists_AddInvited() kann nun einen Fehler liefern.
2002-07-15 16:35:21 +00:00
Alexander Barton
151babd168
- IRC_INVITE() validierte das Ziel eines INVITES nicht korrekt.
2002-06-11 13:59:07 +00:00
Alexander Barton
27a70171f1
- Flag "OnlyOnce" bei Lists_AddInvited() ergaenzt.
2002-06-09 13:17:29 +00:00
Alexander Barton
adc1eedda3
- IRC_INVITE() implementiert.
2002-06-02 15:23:46 +00:00
Alexander Barton
234f9472c2
- IRC_KICK() implementiert.
2002-06-01 14:39:34 +00:00
Alexander Barton
ea9b72ef79
- neues Modul "irc-op" begonnen.
2002-05-27 11:22:07 +00:00