|
@@ -15,7 +15,6 @@ import (
|
15
|
15
|
"time"
|
16
|
16
|
"unicode"
|
17
|
17
|
|
18
|
|
- "github.com/oragono/oragono/irc/caps"
|
19
|
18
|
"github.com/oragono/oragono/irc/connection_limits"
|
20
|
19
|
"github.com/oragono/oragono/irc/email"
|
21
|
20
|
"github.com/oragono/oragono/irc/ldap"
|
|
@@ -1937,6 +1936,7 @@ type rawClientAccount struct {
|
1937
|
1936
|
}
|
1938
|
1937
|
|
1939
|
1938
|
// logoutOfAccount logs the client out of their current account.
|
|
1939
|
+// TODO(#1027) delete this entire method and just use client.Logout()
|
1940
|
1940
|
func (am *AccountManager) logoutOfAccount(client *Client) {
|
1941
|
1941
|
if client.Account() == "" {
|
1942
|
1942
|
// already logged out
|
|
@@ -1945,12 +1945,4 @@ func (am *AccountManager) logoutOfAccount(client *Client) {
|
1945
|
1945
|
|
1946
|
1946
|
client.Logout()
|
1947
|
1947
|
go client.nickTimer.Touch(nil)
|
1948
|
|
-
|
1949
|
|
- // dispatch account-notify
|
1950
|
|
- // TODO: doing the I/O here is kind of a kludge, let's move this somewhere else
|
1951
|
|
- go func() {
|
1952
|
|
- for friend := range client.Friends(caps.AccountNotify) {
|
1953
|
|
- friend.Send(nil, client.NickMaskString(), "ACCOUNT", "*")
|
1954
|
|
- }
|
1955
|
|
- }()
|
1956
|
1948
|
}
|