diff options
author | Wim <wim@42.be> | 2016-11-14 00:10:55 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-14 00:12:48 +0100 |
commit | a11f77835d0f2967ba05dbd5e82b715cb7254d23 (patch) | |
tree | 879388203647ea50c68bf407a330a44ca8892dad /bridge/irc | |
parent | af1ad82c8eb823c054cf1ba40c7c3b6b61c45fce (diff) | |
download | matterbridge-msglm-a11f77835d0f2967ba05dbd5e82b715cb7254d23.tar.gz matterbridge-msglm-a11f77835d0f2967ba05dbd5e82b715cb7254d23.tar.bz2 matterbridge-msglm-a11f77835d0f2967ba05dbd5e82b715cb7254d23.zip |
Fix !users command for irc. Closes #78.
Diffstat (limited to 'bridge/irc')
-rw-r--r-- | bridge/irc/irc.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index ea139be8..d6b6c5f6 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -53,9 +53,9 @@ func New(cfg config.Protocol, account string, c chan config.Message) *Birc { func (b *Birc) Command(msg *config.Message) string { switch msg.Text { case "!users": + b.i.AddCallback(ircm.RPL_NAMREPLY, b.storeNames) b.i.AddCallback(ircm.RPL_ENDOFNAMES, b.endNames) b.i.SendRaw("NAMES " + msg.Channel) - b.i.ClearCallback(ircm.RPL_ENDOFNAMES) } return "" } @@ -150,7 +150,6 @@ func (b *Birc) handleNewConnection(event *irc.Event) { i.AddCallback("PRIVMSG", b.handlePrivMsg) i.AddCallback("CTCP_ACTION", b.handlePrivMsg) i.AddCallback(ircm.RPL_TOPICWHOTIME, b.handleTopicWhoTime) - i.AddCallback(ircm.RPL_NAMREPLY, b.storeNames) i.AddCallback(ircm.NOTICE, b.handleNotice) //i.AddCallback(ircm.RPL_MYINFO, func(e *irc.Event) { flog.Infof("%s: %s", e.Code, strings.Join(e.Arguments[1:], " ")) }) i.AddCallback("PING", func(e *irc.Event) { |