fmt
This commit is contained in:
parent
d91de1c3c0
commit
5f71c07dee
5
modes.go
5
modes.go
|
@ -119,6 +119,7 @@ func (c *CModes) Get(mode string) (args string, ok bool) {
|
|||
}
|
||||
|
||||
// hasArg checks to see if the mode supports arguments. What ones support this?:
|
||||
//
|
||||
// A = Mode that adds or removes a nick or address to a list. Always has a parameter.
|
||||
// B = Mode that changes a setting and always has a parameter.
|
||||
// C = Mode that changes a setting and only has a parameter when set.
|
||||
|
@ -458,7 +459,7 @@ type Perms struct {
|
|||
|
||||
// IsAdmin indicates that the user has banning abilities, and are likely a
|
||||
// very trustable user (e.g. op+).
|
||||
func (m Perms) IsAdmin() bool {
|
||||
func (m *Perms) IsAdmin() bool {
|
||||
if m.Owner || m.Admin || m.Op {
|
||||
return true
|
||||
}
|
||||
|
@ -468,7 +469,7 @@ func (m Perms) IsAdmin() bool {
|
|||
|
||||
// IsTrusted indicates that the user at least has modes set upon them, higher
|
||||
// than a regular joining user.
|
||||
func (m Perms) IsTrusted() bool {
|
||||
func (m *Perms) IsTrusted() bool {
|
||||
if m.IsAdmin() || m.HalfOp || m.Voice {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue