summaryrefslogtreecommitdiff
path: root/lib/lsg_irc/tell_plugin.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-07 08:14:46 +0200
committerhref <href@random.sh>2021-09-07 08:14:46 +0200
commit4b87c93fd13cda5f80720058e979b722028f940c (patch)
treeb7046da7006482a02352fcc317dfa439127b5dde /lib/lsg_irc/tell_plugin.ex
parentlive fixes/improvements (diff)
various fixes
Diffstat (limited to 'lib/lsg_irc/tell_plugin.ex')
-rw-r--r--lib/lsg_irc/tell_plugin.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lsg_irc/tell_plugin.ex b/lib/lsg_irc/tell_plugin.ex
index 2c9e3c8..baaa0c5 100644
--- a/lib/lsg_irc/tell_plugin.ex
+++ b/lib/lsg_irc/tell_plugin.ex
@@ -56,7 +56,7 @@ defmodule LSG.IRC.TellPlugin do
def handle_info({:account_change, old_id, new_id}, state) do
#:ets.fun2ms(fn({ {_net, _chan, target_id}, from_id, _, _} = obj) when (target_id == old_id) or (from_id == old_id) -> obj end)
spec = [{{{:"$1", :"$2", :"$3"}, :"$4", :_, :_}, [{:orelse, {:==, :"$3", {:const, old_id}}, {:==, :"$4", {:const, old_id}}}], [:"$_"]}]
- Util.Util.ets_mutate_select_each(:dets, state.dets, spec, fn(table, obj) ->
+ Util.ets_mutate_select_each(:dets, state.dets, spec, fn(table, obj) ->
case obj do
{ {net, chan, ^old_id}, from_id, message, at } = obj ->
:dets.delete(obj)