Skip to content

Commit 2a50d41

Browse files
committed
move global command registration to JELP
1 parent ffbf8d6 commit 2a50d41

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

modules/Core/UserCommands.module/UserCommands.pm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ our %user_commands = (
182182
);
183183

184184
sub init {
185-
$mod->register_global_command(name => $_) || return foreach qw(
186-
version time admin
187-
);
188185

189186
&add_join_callbacks;
190187
&add_whois_callbacks;

modules/JELP/Incoming.module/Incoming.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"description" : "basic set of JELP command handlers",
1010
"name" : "JELP::Incoming",
1111
"package" : "M::JELP::Incoming",
12-
"version" : "15.93"
12+
"version" : "16.03"
1313
}

modules/JELP/Incoming.module/Incoming.pm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ sub init {
159159
forward => $scommands{$_}{forward}
160160
) || return foreach keys %scommands;
161161

162+
# global user commands
163+
$mod->register_global_command(name => $_) || return foreach qw(
164+
version time admin
165+
);
166+
162167
undef %scommands;
163168
return 1;
164169
}

0 commit comments

Comments
 (0)