mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
client: Fix initial RPL_UMODEIS
This commit is contained in:
parent
220bc2c609
commit
c2aa31001a
@ -234,13 +234,12 @@ func (client *Client) HasUsername() bool {
|
|||||||
|
|
||||||
// <mode>
|
// <mode>
|
||||||
func (c *Client) ModeString() (str string) {
|
func (c *Client) ModeString() (str string) {
|
||||||
|
str = "+"
|
||||||
|
|
||||||
for flag := range c.flags {
|
for flag := range c.flags {
|
||||||
str += flag.String()
|
str += flag.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(str) > 0 {
|
|
||||||
str = "+" + str
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user