aboutsummaryrefslogtreecommitdiff
path: root/client_conn.go
diff options
context:
space:
mode:
Diffstat (limited to 'client_conn.go')
-rw-r--r--client_conn.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/client_conn.go b/client_conn.go
index 9278578..bffc0e7 100644
--- a/client_conn.go
+++ b/client_conn.go
@@ -566,8 +566,7 @@ func handleClt(cc *ClientConn) {
cc.Log("-->", append([]string{"cmd", cmdName}, args...))
- pluginsMu.RLock()
- for _, p := range plugins {
+ for p := range plugins {
sym, err := p.Lookup("HandleChatCmd")
if err != nil {
cc.Log("-->", err)
@@ -581,7 +580,6 @@ func handleClt(cc *ClientConn) {
}
}
}
- pluginsMu.RUnlock()
if !handled {
cc.SendCmd(&mt.ToCltChatMsg{