More fixes for owner mode

This commit is contained in:
Sam Dodrill 2013-10-04 21:40:54 -07:00
parent 0814442111
commit 2fad91d915
2 changed files with 8 additions and 1 deletions

View File

@ -75,7 +75,7 @@ mo_opme(struct Client *client_p, struct Client *source_p, int parc, const char *
{ {
msptr = ptr->data; 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]); sendto_one_notice(source_p, ":%s Channel is not opless", parv[1]);
return 0; return 0;

View File

@ -1540,6 +1540,13 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use
chptr = mscptr->chptr; chptr = mscptr->chptr;
mptr = mode; mptr = mode;
if(is_owner(mscptr))
{
*mptr++ = 'y';
strcat(modeval, nick);
strcat(modeval, " ");
}
if(is_admin(mscptr)) if(is_admin(mscptr))
{ {
*mptr++ = 'a'; *mptr++ = 'a';