Don't show a kick button on your own session in the list of active sessions

This commit is contained in:
Daniel Winzen
2016-07-24 20:04:18 +02:00
parent 7972453e42
commit 6a8442969d
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,5 @@
Don't display empty option for system messages in delete messages by name
Don't show a kick button on your own session in the list of active sessions
Version 1.20.6 - Jul. 23, 2016
Simplify ignore logic + disallow ignoring chatters with higher status

View File

@ -1059,8 +1059,13 @@ function send_sessions(){
echo "<td class=\"padded\">$temp[ip]</td>";
}
echo '<td class="padded">';
frmadm('sessions');
echo hidden('nick', $temp['nickname']).submit($I['kick']).'</form></td></tr>';
if($temp['nickname']!==$U['nickname']){
frmadm('sessions');
echo hidden('nick', $temp['nickname']).submit($I['kick']).'</form>';
}else{
echo '-';
}
echo '</td></tr>';
}else{
echo '<td class="padded">-</td>';
if($trackip){