diff options
Diffstat (limited to 'include/Contact.php')
-rw-r--r-- | include/Contact.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php index be4bd9212..2ace23f01 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -19,6 +19,13 @@ function abook_self($channel_id) { return(($r) ? $r[0] : array()); } +function channelx_by_nick($nick) { + return q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_address = '%s' LIMIT 1", + dbesc($nick) + ); +} + + function vcard_from_xchan($xchan, $observer = null, $mode = '') { $connect = false; |