More fixes for owner mode
This commit is contained in:
parent
0814442111
commit
2fad91d915
|
@ -75,7 +75,7 @@ mo_opme(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
{
|
||||
msptr = ptr->data;
|
||||
|
||||
if(is_chanop(msptr) || is_admin(msptr))
|
||||
if(is_chanop(msptr) || is_admin(msptr) || is_owner(msptr))
|
||||
{
|
||||
sendto_one_notice(source_p, ":%s Channel is not opless", parv[1]);
|
||||
return 0;
|
||||
|
|
|
@ -1540,6 +1540,13 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use
|
|||
chptr = mscptr->chptr;
|
||||
mptr = mode;
|
||||
|
||||
if(is_owner(mscptr))
|
||||
{
|
||||
*mptr++ = 'y';
|
||||
strcat(modeval, nick);
|
||||
strcat(modeval, " ");
|
||||
}
|
||||
|
||||
if(is_admin(mscptr))
|
||||
{
|
||||
*mptr++ = 'a';
|
||||
|
|
Loading…
Reference in New Issue