<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mrfred</id>
	<title>Kolmafia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mrfred"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/Mrfred"/>
	<updated>2026-04-25T01:41:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Is_online&amp;diff=6428</id>
		<title>Is online</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Is_online&amp;diff=6428"/>
		<updated>2014-01-14T03:16:53Z</updated>

		<summary type="html">&lt;p&gt;Mrfred: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|is_online}}{{&lt;br /&gt;
#vardefine:return_type|boolean}}{{&lt;br /&gt;
&lt;br /&gt;
FunctionPage|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
&lt;br /&gt;
function1={{Function|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
aggregate={{#var:aggregate}}|&lt;br /&gt;
return_type={{#var:return_type}}|&lt;br /&gt;
return_also={{#var:return_also}}|&lt;br /&gt;
parameter1={{Param|string|player}}|&lt;br /&gt;
p1desc={{Pspan|player}} is the name of a player|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function2={{Function|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
aggregate={{#var:aggregate}}|&lt;br /&gt;
return_type={{#var:return_type}}|&lt;br /&gt;
return_also={{#var:return_also}}|&lt;br /&gt;
parameter1={{Param|int|player_id}}|&lt;br /&gt;
p1desc={{Pspan|player_id}} is the id of a player|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=Checks to see if a given {{pspan|player}} is currently online, returning true if they are, false otherwise. Works on any player, not just those on your friends list and in your clan.|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Sample|&lt;br /&gt;
description=Try to get Sonata of Sneakiness from an online buffbots, skipping those that are not online.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
int bots_tried;&lt;br /&gt;
if(is_online(&amp;quot;IocaineBot&amp;quot;)) {&lt;br /&gt;
   cli_execute(&amp;quot;csend 18 meat to IocaineBot&amp;quot;);&lt;br /&gt;
   bots_tried = bots_tried + 1;&lt;br /&gt;
}&lt;br /&gt;
if(is_online(&amp;quot;KolaBuff&amp;quot;)) {&lt;br /&gt;
   cli_execute(&amp;quot;csend 23 meat to KolaBuff&amp;quot;);&lt;br /&gt;
   bots_tried = bots_tried + 1;&lt;br /&gt;
}&lt;br /&gt;
if(is_online(&amp;quot;zonkttc&amp;quot;)) {&lt;br /&gt;
   cli_execute(&amp;quot;csend 17 meat to zonkttc&amp;quot;);&lt;br /&gt;
   bots_tried = bots_tried + 1;&lt;br /&gt;
}&lt;br /&gt;
print(&amp;quot;Asked &amp;quot;+ bots_tried +&amp;quot; buffbots for Sonata of Sneakiness.&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}|&lt;br /&gt;
&lt;br /&gt;
special=Note that this function returns false if {{pspan|player}} does not exist.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Miscellaneous Functions]]&lt;/div&gt;</summary>
		<author><name>Mrfred</name></author>
	</entry>
</feed>