mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-28 20:39:18 +02:00
* plugins/who.sh: Output some text when there are no users connected. Otherwise the module goes to unkown. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9763 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
15 lines
215 B
Bash
Executable File
15 lines
215 B
Bash
Executable File
#!/bin/bash
|
|
echo "<module>";
|
|
echo "<name>who</name>";
|
|
echo "<type>async_string</type>";
|
|
echo "<data><![CDATA["
|
|
WHO=`who`
|
|
if [ "$WHO" == "" ]; then
|
|
echo "None"
|
|
else
|
|
echo $WHO
|
|
fi
|
|
echo "]]></data>"
|
|
echo "</module>"
|
|
|