summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/client.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/client.go b/client/client.go
index 8abbde2..ba53ec9 100644
--- a/client/client.go
+++ b/client/client.go
@@ -81,8 +81,8 @@ func (c *Client) SendMessage(target, content string) error {
func (c *Client) Join(channel string) error {
umod := core.Usermode{
- UserAddr: c.cfg.User + "@" + c.cfg.Addr,
- ChannelName: channel,
+ UserAddr: c.cfg.User,
+ ChannelAddr: channel,
Mode: core.UsermodeInChannel,
}
@@ -91,8 +91,8 @@ func (c *Client) Join(channel string) error {
func (c *Client) Leave(channel string) error {
umod := core.Usermode{
- UserAddr: c.cfg.User + "@" + c.cfg.Addr,
- ChannelName: channel,
+ UserAddr: c.cfg.User,
+ ChannelAddr: channel,
Mode: core.UsermodeNone,
}