Skip to content
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

Update quitrand.pl #716

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update quitrand.pl #716

wants to merge 2 commits into from

Conversation

simcop2387
Copy link

Clean up the perl a little. Remove an uneccesary loop, use a lexical file handle to avoid possible conflicts, and use chomp instead of chop. chomp will only remove the newline rather than any last character in the line. This fixes a potential bug for the last message in the file if the file doesn't end in a newline.

Clean up the perl a little.  Remove an uneccesary loop, use a lexical file handle to avoid possible conflicts, and use chomp instead of chop.  chomp will only remove the newline rather than any last character in the line.  This fixes a potential bug for the last message in the file if the file doesn't end in a newline.
bump the version of the script
@ailin-nemui
Copy link
Contributor

it would seem that the array index can go out of the end of lines?

@ailin-nemui
Copy link
Contributor

@fpereda

@fpereda
Copy link

fpereda commented Jul 14, 2020

It's been a while since I've used irssi (or IRC for that matter). I'm amazed someone is even caring about quitrand.pl at all!

@vague666
Copy link
Member

No idea if anyone uses it but it came up when someone wanted to script separate quit messages for each network :)
The perl code was quite outdated - the same with quitmsg.pl - so both scripts got a new shiny coat in case someone needs to use them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants