mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Merge pull request #200 from hamano/mod_offline_bug
fix mod_offline:count_offline_messages/2
This commit is contained in:
commit
c511194c2e
@ -870,7 +870,7 @@ count_offline_messages(LUser, LServer) ->
|
||||
case catch odbc_queries:count_records_where(
|
||||
LServer, "spool",
|
||||
<<"where username='", Username/binary, "'">>) of
|
||||
{selected, [_], [{Res}]} ->
|
||||
{selected, [_], [[Res]]} ->
|
||||
jlib:binary_to_integer(Res);
|
||||
_ ->
|
||||
0
|
||||
|
Loading…
Reference in New Issue
Block a user