Getting rid of tabs.
This commit is contained in:
1 parent
ad799a32a2
commit
cc1c8fd5bc
20 files changed
+1279
-1277
No files matched your search
+12
-12
@@ -10,28 +10,28 @@ use API::IRC qw(privmsg);
|
||||
# Initialization subroutine.
|
||||
sub _init
|
||||
{
|
||||
# Add a hook for when we join a channel.
|
||||
hook_add("on_ucjoin", "HelloChan", \&M::HelloChan::hello) or return 0;
|
||||
return 1;
|
||||
ssss# Add a hook for when we join a channel.
|
||||
sssshook_add("on_ucjoin", "HelloChan", \&M::HelloChan::hello) or return 0;
|
||||
ssssreturn 1;
|
||||
}
|
||||
|
||||
# Void subroutine.
|
||||
sub _void
|
||||
{
|
||||
# Delete the hook.
|
||||
hook_del("on_ucjoin", "HelloChan") or return 0;
|
||||
return 1;
|
||||
ssss# Delete the hook.
|
||||
sssshook_del("on_ucjoin", "HelloChan") or return 0;
|
||||
ssssreturn 1;
|
||||
}
|
||||
|
||||
# Main subroutine.
|
||||
sub hello
|
||||
{
|
||||
my (($svr, $chan)) = @_;
|
||||
|
||||
# Send a PRIVMSG.
|
||||
privmsg($svr, $chan, "Hello channel! I am a bot!");
|
||||
|
||||
return 1;
|
||||
ssssmy (($svr, $chan)) = @_;
|
||||
ssss
|
||||
ssss# Send a PRIVMSG.
|
||||
ssssprivmsg($svr, $chan, "Hello channel! I am a bot!");
|
||||
ssss
|
||||
ssssreturn 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user