Error when switching windows.
tedski opened this issue · 5 comments
tedski commented
When switching windows, I encounter the following error:
### Error in script slack:
Can't locate object method "view" via package "Irssi::UI::Window" at /home/tedski/.irssi/scripts/slack.pl line 207.
@jwm, do you not encounter this after your addition of update_slack_mark
?
jwm commented
@tedski hm, no I don't. What version of irssi are you running? I'm running 0.8.15 (from Debian wheezy) and that handler definitely gets a Irssi::UI::Window with a view method.
calve commented
In my experience this occur only on private channels (note the channel_not_found
)
09:55 slackbot [] requested CTCP VERSION from calve:
09:55 -!- IRC-SLACK gateway
09:55 -!- Welcome to Slack IRC Gateway server
09:55 -!- MAP SILENCE=15 WHOX WALLCHOPS WALLVOICES USERIP CPRIVMSG CNOTICE MODES=6 MAXCHANNELS=100 SAFELIST are supported by this server
09:55 -!- NICKLEN=32 TOPICLEN=160 AWAYLEN=160 CHANTYPES=# PREFIX=(ov)@+ CHANMODES=b,k,l,rimnpst CASEMAPPING=rfc1459 are supported by this server
09:55 -!- there are 17 users
09:55 -!- Message of the day
09:55 -!- WELCOME TO SLACK...
09:55 -!- End of MOTD command
09:55 -!- Irssi: The Slack API returned the following error: channel_not_found
09:55 -!- Mode change [] for user calve:+i
09:58 -!- Irssi: Error in script slack:
09:58 Can't locate object method "view" via package "Irssi::UI::Window" at /home/goudale/.irssi/scripts/autorun/slack.pl line 207.
ailin-nemui commented
likely cause, you forgot to use Irssi::TextUI
but were accessing Irssi::UI
functions