From cd4c730b9c9b21307a608e5366dce2615e0afaf4 Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 21 Jun 2010 18:28:32 +0200 Subject: [PATCH] Fix pattern match --- src/mod_configure.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_configure.erl b/src/mod_configure.erl index 6371f1c22..b8b8c4b4b 100644 --- a/src/mod_configure.erl +++ b/src/mod_configure.erl @@ -1661,7 +1661,7 @@ set_form(From, Host, ?NS_ADMINL("change-user-password"), _Lang, XData) -> set_form(From, Host, ?NS_ADMINL("get-user-lastlogin"), Lang, XData) -> AccountString = get_value("accountjid", XData), JID = exmpp_jid:parse(AccountString), - User = [_|_] = exmpp_jid:prep_node(JID), + User = exmpp_jid:prep_node(JID), Server = exmpp_jid:prep_domain(JID), true = (Server == Host) orelse (get_permission_level(From) == global),