diff --git a/lib/function.php b/lib/function.php index 487e909..c812a3e 100644 --- a/lib/function.php +++ b/lib/function.php @@ -402,6 +402,12 @@ function dotags($msg, $user, &$tags = array()) { $tags = json_decode($tags, true); } + if (empty($tags) && empty($user)) { + // settags sent us here and we have nothing to go off of. + // Shrug our shoulders, and move on. + return $msg; + } + if (empty($tags)) { $tags = array( '/me ' => "*". $user['username'] ." ",