summaryrefslogtreecommitdiff
path: root/src/mod_irc_sql.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-25 10:01:01 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-25 10:01:01 +0300
commit603ec9cb19ec8664ca75dd74b1cb3541878a27da (patch)
tree89e0802baeeda5859938e089733d2d426746cfbf /src/mod_irc_sql.erl
parentDon't pass 'from' and 'to' along with stanza in hooks' arguments (diff)
Don't pass empty resource to jid:make()
Diffstat (limited to 'src/mod_irc_sql.erl')
-rw-r--r--src/mod_irc_sql.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_irc_sql.erl b/src/mod_irc_sql.erl
index f27b05f6..dd419875 100644
--- a/src/mod_irc_sql.erl
+++ b/src/mod_irc_sql.erl
@@ -72,7 +72,7 @@ export(_Server) ->
data = Data}) ->
case str:suffix(Host, IRCHost) of
true ->
- SJID = jid:to_string(jid:make(U, S, <<"">>)),
+ SJID = jid:to_string(jid:make(U, S)),
SData = jlib:term_to_expr(Data),
[?SQL("delete from irc_custom"
" where jid=%(SJID)s and host=%(IRCHost)s;"),