Ticket #38 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Certain characters mess up public away

Reported by: szrof Owned by: james
Priority: minor Milestone: 0.1.0
Component: abstracts Version: 0.0.9
Keywords: public away magic horse Cc:

Description

I don't have the full partyline output since my console is only +d, but when my bot tries to set itself away with a certain away reason, the output to the channel doesn't work. The bot still sets itself away with a reason of "I am the magic horse(£(£$&", but it has a "tremendous failure" when trying to announce that on the channel. I assume the problem is due to the ampersand, but I haven't had a look at the code in question yet.

[11:32] bMotion: All channels are idle, going away
[11:32] (d)bMotion: abstract randomAways has been unloaded, reloading...
[11:32] bMotion: ALERT! Bailed in bMotionInsertString with /is away: %% (created /is away: I am the magic horse(£(£$I am the magic horse(£(£$I am the magic horse(£(£$I am the magic horse(£(£$I am the magic horse(£(£$I am the magic horse(£(£$I am the magic horse(£(£$I am the magic horse(£(£$I am the magic horse(£(£$I am the magic horse(£(£$I am the magic horse(£(£$%%) (was changing %% for I am the magic horse(£(£$&)
[11:32] (d)bMotion:  Set myself away: I am the magic horse(£(£$&

Change History

comment:1 Changed 6 years ago by szrof

  • Priority changed from major to minor

comment:2 Changed 6 years ago by james

& in regsub is replaced with the entire matching string (I now know), so that's why it's going wrong.

comment:3 Changed 6 years ago by james

  • Status changed from new to closed
  • Resolution set to fixed

fixed i think

Note: See TracTickets for help on using tickets.