mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-19 22:18:11 -07:00
irc operators
This commit is contained in:
@@ -15,6 +15,7 @@ type Client struct {
|
||||
hostname string
|
||||
invisible bool
|
||||
nick string
|
||||
operator bool
|
||||
realname string
|
||||
registered bool
|
||||
replies chan<- Reply
|
||||
@@ -109,6 +110,10 @@ func (c *Client) ModeString() (str string) {
|
||||
if c.invisible {
|
||||
str += Invisible.String()
|
||||
}
|
||||
if c.operator {
|
||||
str += Operator.String()
|
||||
}
|
||||
|
||||
if len(str) > 0 {
|
||||
str = "+" + str
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user