code cleanup

This commit is contained in:
friendica
2014-02-20 17:07:43 -08:00
parent 5c984aab66
commit e55170c00a
3 changed files with 14 additions and 23 deletions

View File

@@ -1206,3 +1206,12 @@ function remote_online_status($webbie) {
return $result;
}
function get_channel_by_nick($nick) {
$r = q("select * from channel where channel_address = '%s' limit 1",
dbesc($nick)
);
return(($r) ? $r[0] : false);
}