Is it possible to make the bot check if a user has ~ (owner) or not without being on the channel?
Perhaps the bot could use /whois nick? it shows that way,
what i need is a user invites a bot to a channel with /msg bot join #channel, and the user inviting Must have ~ (owner) on that channel, otherwise the bot wont join.
The simplest way imho:
The user invites bot, bot join.
Then, it checks the user and if it doesn't match the flag you need, the bot parts.
But I'm not sure the ~ flag is easily parsable
So the second way: as you said, do a /whois and wait for the raw 319, then check if it matches {$nick : .*~$chan.*}