Bug - Fixed KoLmafia isn't recognizing clan switching

Bale

Minion
I don't know when this stopped working, but now when I switch clans mafia does not detect it. get_clan_id() and get_clan_name() are not updated to the new clan. This is trivial to reproduce, but I decided to provide a debug log in addition.

Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13913, Windows XP, Java 1.7.0_51
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Please note: do not post this log in the KoLmafia thread of KoL's
 Gameplay-Discussion forum. If you would like the KoLmafia dev team
 to look at it, please write a bug report at kolmafia.us. Include
 specific information about what you were doing when you made this
 and include this log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Timestamp: Wed Apr 02 01:02:48 EDT 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



> ash get_clan_id()

Returned: 41543

> ash get_clan_name()

Returned: Hardcore Nation
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to showclan.php...

Requesting: http://www.kingdomofloathing.com/showclan.php?recruiter=1&whichclan=84118
2 request properties
Field: Cookie = [appserver=www10; PHPSESSID=v8kiu24vg43is3a2e6igmm8ho1]
Field: User-Agent = [KoLmafia v16.2]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/showclan.php?recruiter=1&whichclan=84118
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Transfer-Encoding = [chunked]
Field: Date = [Wed, 02 Apr 2014 05:03:01 GMT]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

Retrieving server reply
ResponseText has 13701 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";var actions = { "sendmessage.php" : { "action" : 1, "title" : "Send Message", "arg" : "toid" }, "makeoffer.php" : { "action" : 1, "title" : "Propose Trade", "arg" : "towho" }, "skills.php" : { "action" : 1, "title" : "Buff", "arg" : "towho" }, "mallstore.php" : { "action" : 1, "title" : "Mall Store", "arg" : "whichstore" }, "displaycollection.php" : { "action" : 1, "title" : "Display Case", "arg" : "who" }, "ascensionhistory.php" : { "action" : 1, "title" : "Ascension History", "arg" : "back=other&who" }, "curse.php" : { "action" : 1, "title" : "Brick 'Em, Dano", "arg" : "whichitem=1649&targetplayer" }, "/./curse.php" : { "action" : 1, "title" : "Throw TP", "arg" : "whichitem=1923&targetplayer" }, "/./././curse.php" : { "action" : 1, "title" : "Send Candy Heart", "arg" : "randomheart=1&targetplayer" }, "/whois" : { "action" : 2, "useid" : true, "submit" : true}, "/msg" : { "action" : 3, "useid" : true, "query" : "Enter message to send to %:" } }var notchat = true;//--></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><script language=Javascript src='http://images.kingdomofloathing.com/scripts/rcm.20090915.js'></script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.20130904.css"><style type='text/css'>.faded {zoom: 1;filter: alpha(opacity=35);opacity: 0.35;}</style></head><body><div id='menu' class=rcm></div><centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Hardcore State</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td valign=top>Leader:</td><td valign=top><b><a href="showplayer.php?who=1288212">HCS</a></b>, Level 62 Seal Clubber</td></tr></table><span class=small>Website: <a target=_blank href='http://forums.hardcoreoxygenation.com/viewtopic.php?t=3045'>http://forums.hardcoreoxygenation.com/viewtopic.php?t=3045</a></span><p><table width=80% border cellpadding=5><tr><td><center><b>Credo:</b><br>Stainless is Forever.</td></tr></table><p><b>Members:</b><table><tr><td></td><td align=center class=small><b>Name:</b></td><td align=center class=small><b>Title:</b></td><td align=center class=small><b>Level:</b></td></tr><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=590165">youngerpants</a></b> </td><td class=small> </td><td class=small>70</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=79830">Hairy</a></b> </td><td class=small>Fist of Justice </td><td class=small>65</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=1288212">HCS</a></b> </td><td class=small> </td><td class=small>62</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=786250">Oddity</a></b> </td><td class=small> </td><td class=small>52</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=927176">jojomojo</a></b> </td><td class=small> </td><td class=small>49</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=1269308">Gramphos</a></b> </td><td class=small> </td><td class=small>43</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=141447">Azeron</a></b> </td><td class=small> </td><td class=small>39</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=672910">maximouse25</a></b> </td><td class=small>Skeleton Jelly </td><td class=small>37</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=2105651">Thad_Noriega</a></b> </td><td class=small>Hamster AT </td><td class=small>30</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=1010289">RattyLabray</a></b> </td><td class=small>Obsession with collector score </td><td class=small>25</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=1769673">Bloody Robe</a></b> </td><td class=small> </td><td class=small>18</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=281506">Rev Noodlyson</a></b> </td><td class=small> </td><td class=small>16</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=701035">Autumnwinds</a></b> </td><td class=small> </td><td class=small>16 (H)</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=1260048">Some Bloke</a></b> </td><td class=small>Wafflecopters </td><td class=small>13</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=1658644">HChalle</a></b> </td><td class=small> </td><td class=small>13</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=77941">LaRoni</a></b> </td><td class=small> </td><td class=small>13</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=248951">ketteringdave</a></b> </td><td class=small> </td><td class=small>12 (H)</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=1955177">Trouserpress</a></b> </td><td class=small>Skeleton Jelly </td><td class=small>12 (H)</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=592323">Sudawn</a></b> </td><td class=small> </td><td class=small>11 (H)</td></tR><tr><td valign=center></td><td class=small><b><a class=nounder href="showplayer.php?who=1049996">HairyAnnie</a></b> </td><td class=small> </td><td class=small>4 (H)</td></tR></table><table width="80%"><tr></tr></table><p><form name=apply><input type=hidden name=pwd value='410650cdbbcbc023b45bb1b230994594'><input type=hidden name=whichclan value=84118><input type=hidden name=action value='joinclan'><input class=button type=submit value="Apply to this Clan"> (Confirm: <input type=checkbox name=confirm>)</form><p><centeR><A href="clan_signup.php">Back to the Clan Recruiter</a></centeR><p><b><font color=gray>+</font></b> = player is online, <b>+</b> = player is online and in chat.<p><b>Trophy Case:</b><p>This clan's trophy case contains the following objects:<center><table><tr><td colspan=2 height=2 bgcolor=black></td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=6p4k7b3f9e8q5c5","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/slimeeye.gif" width=30 height=30 class=hand></td><td valign=center><b>Slimy Eyeball</b> (6)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=6f4i9s8h7n4e2t1s","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/litcigar.gif" width=30 height=30 class=hand></td><td valign=center><b>Uncle Hobo's Cigar</b> (11)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=4p9i8g7s5h6i3t2s","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/dill.gif" width=30 height=30 class=hand></td><td valign=center><b>Uncle Hobo's whiskers</b> (28)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=98d7g6f8g9h7f7h9","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/blackcollar.gif" width=30 height=30 class=hand></td><td valign=center><b>Popped Black Collar</b> (23)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=uos2wt8q7nbya88d","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/hole.gif" width=30 height=30 class=hand></td><td valign=center><b>Space Shadow</b> (3)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=ff056jb97o4q9r35","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/raindohbox.gif" width=30 height=30 class=hand></td><td valign=center><b>Star Wallet</b> (4)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=1vx6u9r7rn30fqv7","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/whistle.gif" width=30 height=30 class=hand></td><td valign=center><b>Wolf Whistle</b> (3)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=v45j1336617p76l1","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/cccoccoon.gif" width=30 height=30 class=hand></td><td valign=center><b>Great Sheep's Clothing</b> (1)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=1u6df29f7t3qn7zu","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/rib.gif" width=30 height=30 class=hand></td><td valign=center><b>Self-Righteous Rib</b> (2)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=1u6j3n8m3g0x7f8r","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/tinyhorn.gif" width=30 height=30 class=hand></td><td valign=center><b>Bit of Devil Horn</b> (193)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=hs235966nz754eda","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/triggerfinger.gif" width=30 height=30 class=hand></td><td valign=center><b>Meddling Finger</b> (5)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=e6f7emn4p51g244l","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/necktie.gif" width=30 height=30 class=hand></td><td valign=center><b>Corporeal Necktie</b> (2)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=iw7va8pbrp236zcy","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/ghostdiploma.gif" width=30 height=30 class=hand></td><td valign=center><b>Ghost Diploma</b> (2)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=kbcoa7azvkssf21r","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/bottlecap.gif" width=30 height=30 class=hand></td><td valign=center><b>Bloody Bottlecap</b> (2)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=01pxn23z172pz67c","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/blopener.gif" width=30 height=30 class=hand></td><td valign=center><b>Antique Pewter Bottle Opener</b> (3)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=x2m96i14a1ggs60m","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/fingerbone.gif" width=30 height=30 class=hand></td><td valign=center><b>Vibrating Fingerbone</b> (2)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=1so64t4xn49p0b8y","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/dv_tailbone.gif" width=30 height=30 class=hand></td><td valign=center><b>Crackling Pelvis</b> (4)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=7y8u9i6f7d8s9v5q","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/styore.gif" width=30 height=30 class=hand></td><td valign=center><b>Evil Snowman Heart</b> (193)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=7r8r2g5h5n9b7v5c","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/oilyrag.gif" width=30 height=30 class=hand></td><td valign=center><b>Garbage-covered Rags</b> (192)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=0g3h9w9w4e8u5a8d","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/brokeskull.gif" width=30 height=30 class=hand></td><td valign=center><b>Massive Cracked Skull</b> (172)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=3h4u4i8g3s1v3b1b","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/chesthair.gif" width=30 height=30 class=hand></td><td valign=center><b>Handful of Chest Hair</b> (183)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=6v6y5n5i4m7o8q1a","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/chumcrown.gif" width=30 height=30 class=hand></td><td valign=center><b>Filthy Crown</b> (278)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=0g5j7u3f5n6kl9o4","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/skivvies.gif" width=30 height=30 class=hand></td><td valign=center><b>Hodgman's skivvies</b> (192)</td></tr><tr><td><img onClick='javascript:window.open("desc_clantrophy.php?whichtrophy=0d1j7o5i6u3b8g9m","","height=200,width=300")' src="http://images.kingdomofloathing.com/itemimages/slimetooth.gif" width=30 height=30 class=hand></td><td valign=center><b>Slimy Tooth</b> (348)</td></tr><tr><td colspan=2 height=2 bgcolor=black></td></tr></table></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to showclan.php...

Requesting: http://www.kingdomofloathing.com/showclan.php?pwd&whichclan=84118&action=joinclan&confirm=on
2 request properties
Field: Cookie = [appserver=www10; PHPSESSID=v8kiu24vg43is3a2e6igmm8ho1]
Field: User-Agent = [KoLmafia v16.2]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/showclan.php?pwd&whichclan=84118&action=joinclan&confirm=on
11 header fields
Field: null = [HTTP/1.1 302 Found]
Field: Date = [Wed, 02 Apr 2014 05:03:05 GMT]
Field: Content-Length = [0]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Location = [clan_hall.php]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

class net.sourceforge.kolmafia.request.RelayRequest
Connecting to clan_hall.php...

Requesting: http://www.kingdomofloathing.com/clan_hall.php
2 request properties
Field: Cookie = [appserver=www10; PHPSESSID=v8kiu24vg43is3a2e6igmm8ho1]
Field: User-Agent = [KoLmafia v16.2]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/clan_hall.php
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Date = [Wed, 02 Apr 2014 05:03:05 GMT]
Field: Content-Length = [5701]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

Retrieving server reply
ResponseText has 5701 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";//--></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.20130904.css"><style type='text/css'>.faded {zoom: 1;filter: alpha(opacity=35);opacity: 0.35;}</style></head><body><center><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Clan Hall</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><b>Hardcore State</b><br><span class=small>Website: <a target=_blank href='http://forums.hardcoreoxygenation.com/viewtopic.php?t=3045'>http://forums.hardcoreoxygenation.com/viewtopic.php?t=3045</a><p><table cellpadding=0 cellspacing=0><tr><td colspan=5><img src="http://images.kingdomofloathing.com/otherimages/clanhall/clanhalltop.gif" width=350 height=76></td></tr><tr><td rowspan=3><img src="http://images.kingdomofloathing.com/otherimages/clanhall/clanhallleft.gif" width=25 height=300></td><td width=100 height=100><a href="clan_office.php"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/adminoffice.gif" width=100 height=100 border=0 alt="Clan Administration Office" title="Clan Administration Office"></a></td><td width=100 height=100 align=center valign=center><a href="clan_war.php"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/warroom.gif" width=100 height=100 border=0 alt="The War Room" title="The War Room"></a></td><td width=100 height=100><a href="clan_rumpus.php"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/rumpusroom.gif" width=100 height=100 border=0 alt="Clan Rumpus Room" title="Clan Rumpus Room"></a></td><td rowspan=3><img src="http://images.kingdomofloathing.com/otherimages/clanhall/clanhallright.gif" width=25 height=300></td></tr><tr><td width=100 height=100><a href="clan_forums.php"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/board.gif" width=100 height=100 border=0 alt="Message Board" title="Message Board"></a></td><td width=100 height=100><a href="clan_members.php"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/roster.gif" width=100 height=100 border=0 alt="Membership Roster" title="Membership Roster"></a></td><td width=100 height=100><a href="clan_stash.php"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/stash.gif" width=100 height=100 border=0 alt="Clan Stash" title="Clan Stash"></a></td></tr><tr><td width=100 height=100><a href=clan_viplounge.php><img src="http://images.kingdomofloathing.com/otherimages/clanhall/viplounge.gif" width=100 height=100 border=0 alt="VIP Lounge" title="VIP Lounge"></a></td><td width=100 height=100 align=center valign=center></td><td width=100 height=100><A href="clan_basement.php?fromabove=1"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/clanbasement.gif" width=100 height=100 border=0 alt="Clan Basement" title="Clan Basement"></a></td></tr><tr><td colspan=5><a href="town.php"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/clanhallbottom.gif" width=350 height=69 border=0 alt="Exit" title="Exit"></a></td></tr></table></center><p><centeR><a href="town.php">Back to Seaside Town</a></center><b><p><center>Recent Announcements</center></b><p><blockquote><font size=2><p><b>Date: Wednesday, March 17, 05:30PM<br>From: LaRoni (#77941)</b><p><blockquote>Regarding the slime tube:<br /><br />Bundles of Chamois are expensive and I've noticed we often have 90-99 chamois left when the mother is killed.  IF you know you're getting close to her and IF there are enough turns to spare and still get two nodules, it would be nice if whoever is doing the killing would drop ML and get the chamois over 100 so they can be bundled before the mother.</blockquote><p><font size=2><p><b>Date: Sunday, February 07, 03:26PM<br>From: LaRoni (#77941)</b><p><blockquote>Things to know about the HCS dungeons<br />-------------------- -------------------- -------------------<br />If you use the HCS dungeons, you need to keep the spreadsheet updated. Also, periodically double check it for accuracy as, at least once, some data was lost. If you don't have access, kmail LaRoni with an email address to be added. The spreadsheet can be found here: [link] http:// spreadsheets.google. com/ccc?key=pf7xO4G- GvEIrFQQYL3eWKg& hl=en<br /><br />There is a 'how-to' on the clan message board for almost everything dungeon related. Please make sure you read them. Please be doubly sure to follow them if we're doing specific runs.  Unless otherwise stated in an announcement, assume Hobopolis is 'relaxed and non-optimal' and the Slime Tube is 'nodule run'.  Play accordingly and have chat on so other dungeoneers can talk to you.<br /><br />Hobopolis is free because of how we kill the bosses (see the message board). The Slime Tube is not.  Each piece of equipment is 75k.  Please make DENSE MEAT STACKS and put them in the clan stash instead of donating meat.  This goes for Hobopolis boss loot as well.  And speaking of Hobopolis, please choose the noncombat options that give money to the clan stash in all non-optimal runs. Free meat for the clan is always good.<br /><br />Equipment in the stash is for use in this clan's dungeons and paid for with Hobopolis loot so take what you need. </blockquote><p></blockquote><p><center><a href="clan_signup.php">Go back to the Clan Recruiter.</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>

> ash get_clan_id()

Returned: 41543

> ash get_clan_name()

Returned: Hardcore Nation
 
Last edited:

lostcalpolydude

Developer
Staff member
GenericRequest still has the same check for action=joinclan that I see in your log, so I have no idea why it would no longer work.
 

Veracity

Developer
Staff member
The problem is that the request with action=joinclan redirected to clan_hall.php, and when we got the response for that, the URL no longer had action=joinclan.
 

Bale

Minion
Veracity is brill! Spotted the problem in a flash as soon as I mentioned the problem elsewhere.

BTW, Another reason that this is a problem is that when I change clans, KoLmafia does not update the list of Hot Dogs available for eating.
 

Darzil

Developer
r14344 resets clan information (including hot dogs/speakeasy) when clan changes, regardless of where we set the updated clan. Parses clan_hall.php for clan name and sets it, thus triggering when joining clan.
 

Crowther

Active member
Oops, mafia thought I switch to the clan of someone I attacked.
Attacking: Manofive
Retrieving player data for Manofive...
You are currently a member of Hyrule
Visiting Hot Dog Stand in clan VIP lounge
You are currently a member of Prisoners of 1337
Visiting Hot Dog Stand in clan VIP lounge
Visiting Speakeasy in clan VIP lounge
Visiting Speakeasy in clan VIP lounge
Attacking Manofive...
You acquire an item: pretty flower
You gain a little swagger
You challenged Manofive and won the PvP fight, 7 to 0!
 

Darzil

Developer
How are you attacking? I see this (so no attacking message, no retrieving player data, and no clan change)
You acquire an item: pretty flower
You gain a little swagger
You challenged Tom Sawyer Jr and won the PvP fight, 5 to 2!
I guess you have a before pvp script? What does it do?
 

Crowther

Active member
How are you attacking? I see this (so no attacking message, no retrieving player data, and no clan change)

I guess you have a before pvp script? What does it do?

Code:
                        if (cli_execute("attack " + realname));

I do not have beforePVPScript set to anything.

I have modified my KoLmafia code, but all I did was make it ballyhoo for flowers instead of what code that was there before.

I'll see if I can recreate with a clean version of KoLmafia.
 

Crowther

Active member
Still my custom mafia, but I could recreate the problem from the command line.
Code:
> attack Crowther

Retrieving player data for Crowther...
You are currently a member of Prisoners of 1337
Visiting Hot Dog Stand in clan VIP lounge
Visiting Speakeasy in clan VIP lounge
Attacking Crowther...
Invalid target
Requests complete.

> attack Bengin

Retrieving player data for Bengin...
You are not currently a member of a clan.
Requests complete.

> attack Crowther

Retrieving player data for Crowther...
You are currently a member of Prisoners of 1337
Visiting Hot Dog Stand in clan VIP lounge
Visiting Speakeasy in clan VIP lounge
Attacking Crowther...
Invalid target
Requests complete.
 

Darzil

Developer
Ok, from command line. I'm too used to relay request.

I think I've found the issue, though. In June 2012 a change was made that set the players clan on a profile request of any player. I'll change that to only set it when looking at yourself and this should be sorted.
 

Crowther

Active member
Ok, from command line. I'm too used to relay request.

I think I've found the issue, though. In June 2012 a change was made that set the players clan on a profile request of any player. I'll change that to only set it when looking at yourself and this should be sorted.
Sharing the love is a mini that practically demands automation.

Interesting, that the source of the problem was that old. Thanks.
 

Crowther

Active member
Looks good! I was going to cut and paste the results, but my clipboard has started acting up again.
 

lostcalpolydude

Developer
Staff member
This doesn't seem to have fixed things. Using a chat command to switch clans doesn't update the current clan. Going to the Clan Recruiter and switching from there isn't working. I can't actually find a way to update what clan mafia thinks I'm in.
 

Veracity

Developer
Staff member
This might be a change.

If I refresh the clan stash and switch clans, KoLmafia does not clear the cached clan stash any more. I am almost certain that it used to clear it.
 

Veracity

Developer
Staff member
Revision 15322 should fix this. I have no idea what changed, since it used to work, but extensive changes were required...
 

Veracity

Developer
Staff member
Actually, it seems that the Clan Hall is formatted slightly different, depending on clan. Revision 15323 should handle both formats that I have seen.
 
Top