mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-24 14:26:51 +00:00
- weitere Anpassungen an Channel-Modes und Channel-User-Modes.
This commit is contained in:
parent
207937da2a
commit
6610d6e4ba
@ -9,11 +9,14 @@
|
|||||||
* 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.c,v 1.53 2002/02/11 16:06:21 alex Exp $
|
* $Id: irc.c,v 1.54 2002/02/11 23:33:35 alex Exp $
|
||||||
*
|
*
|
||||||
* irc.c: IRC-Befehle
|
* irc.c: IRC-Befehle
|
||||||
*
|
*
|
||||||
* $Log: irc.c,v $
|
* $Log: irc.c,v $
|
||||||
|
* Revision 1.54 2002/02/11 23:33:35 alex
|
||||||
|
* - weitere Anpassungen an Channel-Modes und Channel-User-Modes.
|
||||||
|
*
|
||||||
* Revision 1.53 2002/02/11 16:06:21 alex
|
* Revision 1.53 2002/02/11 16:06:21 alex
|
||||||
* - Die Quelle von MODE-Aenderungen wird nun korrekt weitergegeben.
|
* - Die Quelle von MODE-Aenderungen wird nun korrekt weitergegeben.
|
||||||
*
|
*
|
||||||
@ -1215,22 +1218,43 @@ 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;
|
||||||
default:
|
default:
|
||||||
|
Log( LOG_DEBUG, "Unknown mode \"%c%c\" from \"%s\"!?", set ? '+' : '-', *mode_ptr, Client_ID( Client ));
|
||||||
ok = IRC_WriteStrClient( Client, ERR_UMODEUNKNOWNFLAG_MSG, Client_ID( Client ));
|
ok = IRC_WriteStrClient( Client, ERR_UMODEUNKNOWNFLAG_MSG, Client_ID( Client ));
|
||||||
x[0] = '\0';
|
x[0] = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( chan )
|
if( chan )
|
||||||
{
|
{
|
||||||
|
/* Ist der User ein Channel Operator? */
|
||||||
|
if( ! strchr( Channel_UserModes( chan, Client ), 'o' ))
|
||||||
|
{
|
||||||
|
Log( LOG_DEBUG, "Can't change modes: \"%s\" is not operator on %s!", Client_ID( Client ), Channel_Name( chan ));
|
||||||
|
ok = IRC_WriteStrClient( Client, ERR_CHANOPRIVSNEEDED_MSG, Client_ID( Client ), Channel_Name( chan ));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* Channel-Modes oder Channel-User-Modes */
|
/* Channel-Modes oder Channel-User-Modes */
|
||||||
if( chan_cl )
|
if( chan_cl )
|
||||||
{
|
{
|
||||||
/* Channel-User-Modes */
|
/* Channel-User-Modes */
|
||||||
Log( LOG_DEBUG, "Channel-User-Mode '%c' not supported ...", *mode_ptr );
|
switch( *mode_ptr )
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
Log( LOG_DEBUG, "Unknown channel-user-mode \"%c%c\" from \"%s\" on \"%s\" at %s!?", set ? '+' : '-', *mode_ptr, Client_ID( Client ), Client_ID( chan_cl ), Channel_Name( chan ));
|
||||||
|
ok = IRC_WriteStrClient( Client, ERR_UMODEUNKNOWNFLAG_MSG, Client_ID( Client ));
|
||||||
|
x[0] = '\0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Channel-Modes */
|
/* Channel-Modes */
|
||||||
Log( LOG_DEBUG, "Channel-Mode '%c' not supported ...", *mode_ptr );
|
switch( *mode_ptr )
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
Log( LOG_DEBUG, "Unknown channel-mode \"%c%c\" from \"%s\" at %s!?", set ? '+' : '-', *mode_ptr, Client_ID( Client ), Channel_Name( chan ));
|
||||||
|
ok = IRC_WriteStrClient( Client, ERR_UMODEUNKNOWNFLAG_MSG, Client_ID( Client ));
|
||||||
|
x[0] = '\0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user