Terminus-Project / Terminus-Bot

A scriptable IRC bot written in Ruby.
http://terminus-bot.net/
Other
38 stars 18 forks source link

Terminus-Bot chokes on external messages #71

Closed Xe closed 9 years ago

Xe commented 10 years ago
           @Xe | >inject :376100002 PRIVMSG #test :Test
ShadowNET#test | FAQServ Test

Leads to the error:

E, [2014-02-24T12:05:30.820292 #30292] ERROR -- events.run: Error running event PRIVMSG: undefined method `prefix' for nil:NilClass

/names in #test

-- | Nicks #test: [@Caerdwyn @ShadowNET @Volantis Terminus-Bot Xe zepton]
-- | Channel #test: 6 nicks (3 ops, 0 halfops, 0 voices, 3 normals)      
ori-sky commented 10 years ago

Running Terminus-Bot in verbose mode -v should give more detailed output about the source of the error. Could you do that and paste the output here?

aji commented 10 years ago

It's trying to get the prefix (+, @, ~, etc.) for a channel user that doesn't exist.

Terminus-Bot should be made more robust to be able to handle -n channels intelligently.

Xe commented 10 years ago

Would a possible fix be to have a prefix defined in the code as less than a normal channel user for anyone that sends an external message?

sariyamelody commented 10 years ago

Is this still an active issue that needs fixes?

Xe commented 10 years ago

I haven't tested in months.

kabaka commented 9 years ago

If someone would like to provide test data on this, please do so. Otherwise I'm closing this in the next few days.

Xe commented 9 years ago

It's been fixed. Closing this.