Browse Source

!info client output changed to "clients=<num>"

And don't decrement by 1 any more, the BATCAVE does that for us now.
Helge Jung 9 years ago
parent
commit
616d5d2ba9
1 changed files with 3 additions and 5 deletions
  1. 3 5
      modules/ffpb.py

+ 3 - 5
modules/ffpb.py

@@ -467,12 +467,10 @@ def ffpb_peerinfo(bot, trigger):
 			info_uptime = ' up {0}m'.format(m)
 
 	info_clients = ""
-	clientcount = ffpb_get_batcave_nodefield(info_id, 'clients.count')
+	clientcount = ffpb_get_batcave_nodefield(info_id, 'clientcount')
 	if not clientcount is None:
-		clientcount = int(clientcount) -1
-		if clientcount == 0: info_clients = ' keine Clients'
-		elif clientcount == 1: info_clients = ' 1 Client'
-		else: info_clients = ' {0} Clients'.format(clientcount)
+		clientcount = int(clientcount)
+		info_clients = ' clients={0}'.format(clientcount)
 
 	bot.say('[{1}]{2}{3}{4}{5}{6}'.format(info_mac, info_name, info_hw, info_fw, info_update, info_uptime, info_clients))