Comments (3)
the c.join
command at
Lines 359 to 360 in db89264
Lines 689 to 691 in db89264
Channels are set at
Line 219 in db89264
So, it doesn't look like there is a clean way to quickly do it without rewriting things.
Since channel names should not contain spaces, you could add a space + channel key to your channels defined at
Line 72 in db89264
Then extract the channel keys with a split before they are lowercased and assigned to self.chan, and then use that as a second parameter at the join command.
I don't really use this library myself anymore, so to be fair, I don't really have the motivation to submit a pull request with working code for this feature request, but hopefully this helps you (or @excid3) add a workaround yourself. :)
from logbot.
If someone does end up rewriting it, I would suggest you make use of the IRC protocol's format of the JOIN command: https://tools.ietf.org/html/rfc2812#page-16
And just have the user define the channels and keys in the argument format the server expects; the actual channel names could then be extracted (and downcased if you want) from the actual join replies from the server. That way you don't have to match up the channel keys with each channel, and just rely on the server to do the matching (as long as the keys are entered in the right order as the channels; AFAIK it doesn't matter though if there are channels without keys in between those that require one; the server should be smart enough).
Basically use comma delimiters for the channel names, followed by a space, followed by comma-separated channel keys.
from logbot.
Since keys is just a second parameter, you can create a KEYS array next to channels and then just pass those in during this loop:
Lines 359 to 360 in db89264
Should be really simple to fix.
from logbot.
Related Issues (20)
- Stuff to add! :D HOT 1
- Crash on FTP Timeout HOT 6
- Bot crash with ftp timeout.
- Configurable Log folder location
- Suggestion: Grouping logs by month/year HOT 1
- Links from chat are not clickable in web
- Suggestion: store settings in an external config file. HOT 6
- Strip ASCII color codes or replace them with HTML colors HOT 2
- Crash upon accessing files in empty log dir HOT 3
- Stuck on Uploading to FTP... HOT 7
- Upgrade to the latest IRClib
- Please add support for making the nickname and username of the bot different from each other.
- Crash on too many IRC modes (network-specific?) HOT 5
- password authentication for nickservs for ability to send Pms to users HOT 1
- Suggestion: creating main index file/checking logs on program startup HOT 3
- Error in the writing index file process HOT 2
- Suggestions: New/update features HOT 3
- Username and SSL Support HOT 3
- issues with timeout it appears HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logbot.