diff options
author | joe <joe@jerkface.net> | 2013-07-09 20:19:31 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2013-07-09 20:19:31 -0400 |
commit | 9585ab81bdd91310fe49b36ca8d29135bd4a68b3 (patch) | |
tree | dec4b3b7d2c250ca146bae13a5d89c852528edc8 /Presence/main.hs | |
parent | 2c27bf56a880341b63df0533441341e72e215a19 (diff) |
Auto-reply approval to remote peer in case a requested subscription
is already established.
Diffstat (limited to 'Presence/main.hs')
-rw-r--r-- | Presence/main.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Presence/main.hs b/Presence/main.hs index 036d7237..303c4b05 100644 --- a/Presence/main.hs +++ b/Presence/main.hs | |||
@@ -287,6 +287,11 @@ instance JabberPeerSession PeerSession where | |||
287 | Offline -> MM.deleteElemIf u match jids | 287 | Offline -> MM.deleteElemIf u match jids |
288 | stat -> maybe jids (\r -> MM.insert u (r,stat) jids) rsc | 288 | stat -> maybe jids (\r -> MM.insert u (r,stat) jids) rsc |
289 | 289 | ||
290 | sendPeerMessage session msg = do | ||
291 | let cons = outGoingConnections . peer_global $ session | ||
292 | putStrLn $ "sendPeerMessage " <++> bshow msg <++> " --> "<++>bshow (peer_name session) | ||
293 | sendMessage cons msg (peer_name session) | ||
294 | |||
290 | getBuddies _ user = ConfigFiles.getBuddies user | 295 | getBuddies _ user = ConfigFiles.getBuddies user |
291 | getSubscribers _ user = ConfigFiles.getSubscribers user | 296 | getSubscribers _ user = ConfigFiles.getSubscribers user |
292 | 297 | ||