mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-14 19:00:27 +00:00
- alle Client_GetFromID() durch Client_Search() ersetzt.
- neuer Mode "s": Server Messages.
This commit is contained in:
parent
bc4ed22635
commit
d4fca86ae8
@ -9,7 +9,7 @@
|
|||||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||||
*
|
*
|
||||||
* $Id: irc-mode.c,v 1.3 2002/03/12 14:37:52 alex Exp $
|
* $Id: irc-mode.c,v 1.4 2002/03/25 17:11:45 alex Exp $
|
||||||
*
|
*
|
||||||
* irc-mode.c: IRC-Befehle zur Mode-Aenderung (MODE, AWAY, ...)
|
* irc-mode.c: IRC-Befehle zur Mode-Aenderung (MODE, AWAY, ...)
|
||||||
*/
|
*/
|
||||||
@ -108,7 +108,7 @@ GLOBAL BOOLEAN IRC_MODE( CLIENT *Client, REQUEST *Req )
|
|||||||
/* Prefix fuer Antworten etc. ermitteln */
|
/* Prefix fuer Antworten etc. ermitteln */
|
||||||
if( Client_Type( Client ) == CLIENT_SERVER )
|
if( Client_Type( Client ) == CLIENT_SERVER )
|
||||||
{
|
{
|
||||||
prefix = Client_GetFromID( Req->prefix );
|
prefix = Client_Search( Req->prefix );
|
||||||
if( ! prefix ) return IRC_WriteStrClient( Client, ERR_NOSUCHNICK_MSG, Client_ID( Client ), Req->prefix );
|
if( ! prefix ) return IRC_WriteStrClient( Client, ERR_NOSUCHNICK_MSG, Client_ID( Client ), Req->prefix );
|
||||||
}
|
}
|
||||||
else prefix = Client;
|
else prefix = Client;
|
||||||
@ -154,6 +154,10 @@ GLOBAL BOOLEAN IRC_MODE( CLIENT *Client, REQUEST *Req )
|
|||||||
}
|
}
|
||||||
else ok = IRC_WriteStrClient( Client, ERR_UMODEUNKNOWNFLAG_MSG, Client_ID( Client ));
|
else ok = IRC_WriteStrClient( Client, ERR_UMODEUNKNOWNFLAG_MSG, Client_ID( Client ));
|
||||||
break;
|
break;
|
||||||
|
case 's':
|
||||||
|
/* server messages */
|
||||||
|
x[0] = 's';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
Log( LOG_DEBUG, "Unknown mode \"%c%c\" from \"%s\"!?", set ? '+' : '-', *mode_ptr, Client_ID( Client ));
|
Log( LOG_DEBUG, "Unknown mode \"%c%c\" from \"%s\"!?", set ? '+' : '-', *mode_ptr, Client_ID( Client ));
|
||||||
ok = IRC_WriteStrClient( Client, ERR_UMODEUNKNOWNFLAG2_MSG, Client_ID( Client ), set ? '+' : '-', *mode_ptr );
|
ok = IRC_WriteStrClient( Client, ERR_UMODEUNKNOWNFLAG2_MSG, Client_ID( Client ), set ? '+' : '-', *mode_ptr );
|
||||||
|
Loading…
Reference in New Issue
Block a user