summaryrefslogtreecommitdiff
path: root/lib/Multi/IRC.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-12-09 16:54:56 +0100
committerYorhel <git@yorhel.nl>2010-12-09 16:54:56 +0100
commit4f91b0b1229e3037f2937acf3e4ec994f33de4f4 (patch)
treeb71940eb74dd979bbb4dff679d921c88db6c25e3 /lib/Multi/IRC.pm
parent72dd32c56b944d207dc70cbe4fc37f8298bd4366 (diff)
Write VNDBUtil::uri_escape() and removed dependency on URI::Escape
Its functionality is too simpel to require it as a special dependency, seriously.
Diffstat (limited to 'lib/Multi/IRC.pm')
-rw-r--r--lib/Multi/IRC.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Multi/IRC.pm b/lib/Multi/IRC.pm
index 75b4f7c4..d2fa1757 100644
--- a/lib/Multi/IRC.pm
+++ b/lib/Multi/IRC.pm
@@ -14,9 +14,8 @@ use POE qw|
Component::IRC::Plugin::Logger
|;
use POE::Component::IRC::Common ':ALL';
-use URI::Escape 'uri_escape_utf8';
use Time::HiRes 'time';
-use VNDBUtil 'normalize_query';
+use VNDBUtil 'normalize_query', 'uri_escape';
use constant {
@@ -370,7 +369,7 @@ sub cmd_vn {
sub cmd_vn_results { # num, res, \@_
return $_[KERNEL]->yield(reply => $_[ARG2][DEST], 'No visual novels found', $_[ARG2][USER]) if $_[ARG0] < 1;
return $_[KERNEL]->yield(reply => $_[ARG2][DEST], sprintf(
- 'Too many results found, see %s/v/all?q=%s', $VNDB::S{url}, uri_escape_utf8($_[ARG2][ARG])
+ 'Too many results found, see %s/v/all?q=%s', $VNDB::S{url}, uri_escape($_[ARG2][ARG])
), $_[ARG2][USER]) if $_[ARG0] > 5;
$_[KERNEL]->yield(formatid => $_[ARG0], $_[ARG1], [$_[ARG2][DEST]]);
}
@@ -395,7 +394,7 @@ sub cmd_p {
sub cmd_p_results { # num, res, \@_
return $_[KERNEL]->yield(reply => $_[ARG2][DEST], 'No producers found', $_[ARG2][USER]) if $_[ARG0] < 1;
return $_[KERNEL]->yield(reply => $_[ARG2][DEST], sprintf(
- 'Too many results found, see %s/p/all?q=%s', $VNDB::S{url}, uri_escape_utf8($_[ARG2][ARG])
+ 'Too many results found, see %s/p/all?q=%s', $VNDB::S{url}, uri_escape($_[ARG2][ARG])
), $_[ARG2][USER]) if $_[ARG0] > 5;
$_[KERNEL]->yield(formatid => $_[ARG0], $_[ARG1], [$_[ARG2][DEST]]);
}