p = buffer;
- if(is_owner(msptr))
+ if(is_admin(msptr))
{
if(!combine)
return "!";
return 0;
}
-/* is_owner()
+/* is_admin()
*
- * input - membership to check for owner
- * output - 1 if the user is an owner, 0 if the user is not or owner
+ * input - membership to check for admin
+ * output - 1 if the user is an admin, 0 if the user is not or admin
* is disabled.
* side effects -
*
*/
int
-is_owner(struct membership *msptr)
+is_admin(struct membership *msptr)
{
- if(!ConfigChannel.use_owner)
+ if(!ConfigChannel.use_admin)
return 0;
if(is_chmode_a(msptr))
return 1;
/* is_any_op()
*
* input - membership to check for ops
- * output - 1 if the user is op, halfop, or owner, 0 elsewise
+ * output - 1 if the user is op, halfop, or admin, 0 elsewise
* side effects -
*/
int
is_any_op(struct membership *msptr)
{
- if(is_chanop(msptr) || is_halfop(msptr) || is_owner(msptr))
+ if(is_chanop(msptr) || is_halfop(msptr) || is_admin(msptr))
return 1;
else
return 0;
/* is_chanop_voiced()
*
* input - memebership to check for status
- * output - 1 if the user is op, halfop, owner, or voice, 0 elsewise
+ * output - 1 if the user is op, halfop, admin, or voice, 0 elsewise
* side effects -
*/
int
is_chanop_voiced(struct membership *msptr)
{
- if(is_chanop(msptr) || is_voiced(msptr) || is_halfop(msptr) || is_owner(msptr))
+ if(is_chanop(msptr) || is_voiced(msptr) || is_halfop(msptr) || is_admin(msptr))
return 1;
else
return 0;
int
can_kick_deop(struct membership *source, struct membership *target)
{
- if(is_chanop(source) && !is_owner(target))
+ if(is_chanop(source) && !is_admin(target))
return 1;
else if(is_halfop(source) && !is_any_op(target))
return 1;
- else if(is_owner(source))
+ else if(is_admin(source))
return 1;
return 0;