Skip to content

Commit

Permalink
Rename an event
Browse files Browse the repository at this point in the history
* Rename 'user_join_room_done' => 'channel_join_done'
* Events will be documented on the wiki soon, more to follow
  • Loading branch information
thesamesam committed Sep 10, 2016
1 parent 343e294 commit bd57ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/IRCd/Channel.pm
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ sub addClient {
$client->write(":$ircd->{host} MODE $self->{name} $modes->{characters}");
}

$ircd->{module}->fire_event("user_join_room_done", $client, $self);
$ircd->{module}->fire_event("channel_join_done", $client, $self);
}
sub quit {
my $self = shift;
Expand Down
2 changes: 1 addition & 1 deletion lib/IRCd/Modules/Services.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ sub evt_sjoin {
sub init {
my $self = shift;
$self->{module}->register_cmd("SJOIN", \&pkt_sjoin, $self);
$self->{module}->register_event("user_join_room_done", \&evt_sjoin, $self);
$self->{module}->register_event("channel_join_done", \&evt_join, $self);
}

1;

0 comments on commit bd57ef1

Please sign in to comment.