projects
/
MQR.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e918f8d
)
remove resource from contact jid
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 29 Aug 2010 00:33:29 +0000
(
02:33
+0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 29 Aug 2010 00:33:29 +0000
(
02:33
+0200)
scripts/mqr-xmpp-client.pl
patch
|
blob
|
history
diff --git
a/scripts/mqr-xmpp-client.pl
b/scripts/mqr-xmpp-client.pl
index
84acdd1
..
d0a7e67
100755
(executable)
--- a/
scripts/mqr-xmpp-client.pl
+++ b/
scripts/mqr-xmpp-client.pl
@@
-56,7
+56,9
@@
$cl->reg_cb (
my $body = $msg->any_body;
- $contacts->{ $msg->from }++;
+ my $f = $msg->from;
+ $f =~ s!/.+!!;
+ $contacts->{ $f }++;
warn "# contacts ",dump($contacts);