Ticket #76 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Fix for Bot summoning itself.

Reported by: znxster@… Owned by: james
Priority: minor Milestone:
Component: plugins Version: 0.0.9
Keywords: Cc:

Description

If the bot summons a shorthand (botnicks) then it either believes the nick is valid (another user) or non-existant.

Before:

<znx> !summon kut
<kutzooi> I bet you thought that was gonna work and kut was just gonna show up.
<znx> !summon kutz
* kutzooi searches all over the channel for kutz

After:

<znx> !summon kutzooi 
<kutzooi> oh! here i am!
<znx> !summon kutz
<kutzooi> oh! here i am!
<znx> !summon kut
<kutzooi> spluh

Yay .. patch attached.

Attachments

summon.fix.diff Download (2.9 KB) - added by znxster@… 5 years ago.
Update to !summon

Change History

Changed 5 years ago by znxster@…

Update to !summon

comment:1 Changed 5 years ago by znxster@…

Should have also said, replaced the global arrays with the new style register/batchadd as per discussion with James.

comment:2 Changed 5 years ago by james

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

fixed in [716], thanks

Note: See TracTickets for help on using tickets.