1
0
Fork 0
forked from External/ergo

fix ModeString

This commit is contained in:
Jeremy Latt 2014-02-09 08:53:06 -08:00
parent 1787ac8ebf
commit 6367e4b654
4 changed files with 15 additions and 4 deletions

View file

@ -104,11 +104,15 @@ func (client *Client) InterestedClients() ClientSet {
return clients
}
func (c *Client) UModeString() string {
// <mode>
func (c *Client) ModeString() (str string) {
if c.invisible {
return "i"
str += Invisible.String()
}
return ""
if len(str) > 0 {
str = "+" + str
}
return
}
func (c *Client) UserHost() string {