Changes:
Added checks on return values for system calls
Moved the block that checks whether a request was made in PM so that this
block is now only executed when !quote or !addquote is called, rather than
for every message received.
Amended the $irc->enqueue line to remove the sprintf and make it more
readable (was the sprintf necessary?)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Quotes Plugin
Quotes Plugin (amended)
Logged In: YES
user_id=971036
I've fixed it up slightly.
Changes:
Added checks on return values for system calls
Moved the block that checks whether a request was made in PM so that this
block is now only executed when !quote or !addquote is called, rather than
for every message received.
Amended the $irc->enqueue line to remove the sprintf and make it more
readable (was the sprintf necessary?)