3
0
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:
Daniel Oaks 2016-09-07 21:50:42 +10:00
parent 220bc2c609
commit c2aa31001a

View File

@ -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
} }