-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Willie assumes channel names start with # #281
Comments
I checked dftba.net, Freenode, Gamesurge, EFNet, and Spotchat. Unless I'm missing something, only Gamesurge and EFNet support anything other than #, and even those only &. You're right, we should support this. We'll need to find a network that supports the other two kinds of channels if we're going to test it fully, though. |
All of these channel types work in IRCNet. A decorator like |
How would you implement it? Is that something you can do, given that you |
You wrap the function object, making sure not to hide any attributes or other important things. |
config option? |
If we have a reliable way to detect whether it's private message or a channel message (and I don't think we do, because the protocol is vague like that), we should add something like |
Adding a configuration option for this makes no sense, as this stuff is defined in rfc 2810 through 2813. Checking the first character of sender is reliable. Channels always start with #, +, ! or & and nicknames never start with those. |
ZNC partyline support (private server channels) start with ~ psyBNC apparently uses either & or Not sure if IRC bot partyline support would be useful to anyone else, but I at least have one future project where it might be handy. |
I just checked on Nerdfighteria Network, and we might be able to check that
|
What we really need here is to support |
Hasn't this been fixed by now? |
trigger.is_privmsg does exist which basically does this but in inverse.
The above would be the equivalent; part of PR #391 One thing to note is it does not account for the situation miggyb mentioned above, it instead assumes the more common set of '#&+!' to be valid prefixes for channels as venti2 said. |
Enables easier checking for whether an identifier is a nick or a channel. Closes sopel-irc#281.
In many places str.startswith("#") is used to check if the sender is a channel. This obviously fails for channels starting with "&", "+" and "!".
At least the following modules do this: bot, modules.adminchannel, modules.find and modules.meetbot.
Channels not starting with "#" are rare, but they do exist, so this should probably be fixed at some point.
The text was updated successfully, but these errors were encountered: