]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - common.php
Show only nick in "set by" for server bans & spamfilter
[irc/unrealircd/unrealircd-webpanel.git] / common.php
index 2d24cccab8c291aba41d62a1a25f48c9831a44b1..4f29d11983b16d01f120b49a34dd5edd95caca9d 100644 (file)
@@ -14,6 +14,14 @@ require_once "Classes/class-message.php";
 require_once "Classes/class-rpc.php";
 require_once "plugins.php";
 
+function show_nick_only($str)
+{
+       $x = strpos($str, "!");
+       if ($x !== false)
+               $str = substr($str, 0, $x);
+       return $str;
+}
+
 $pages = Array("Overview"      => "index.php",
                           "Users"              => "users/index.php",
                           "Channels"   => "channels/index.php",