Blame
Date:
Sun Dec 27 01:56:09 2020 UTC
Message:
Updated p5-Class-DBI-SQLite-0.11p2
001
2020-10-12
jrmu
Output
002
2020-10-12
jrmu
========
003
2020-10-12
jrmu
004
2020-10-12
jrmu
putserv BOT TEXT
005
2020-10-12
jrmu
006
2020-10-12
jrmu
Sends text to the IRC server. Returns nothing.
007
2020-10-12
jrmu
008
2020-10-12
jrmu
Bind
009
2020-10-12
jrmu
========
010
2020-10-12
jrmu
011
2020-10-23
jrmu
bind TYPE FLAGS MASK PROC
012
2020-10-12
jrmu
013
2020-10-12
jrmu
Binds perl procedures to events. Currently flags and mask are ignored. Returns the name of the command that was added.
014
2020-10-12
jrmu
015
2020-10-12
jrmu
1. MSG
016
2020-10-12
jrmu
017
2020-10-23
jrmu
bind "MSG" FLAGS COMMAND PROC
018
2020-10-23
jrmu
procname BOT NICK USERHOST HANDLE TEXT
019
2020-10-12
jrmu
020
2020-10-12
jrmu
Called on /msg commands. The first word of the msg is the command, and the rest
021
2020-10-12
jrmu
the text.
022
2020-10-12
jrmu
023
2020-10-23
jrmu
bind("msg", "", "admin", $proc);
024
2020-10-12
jrmu
sub proc {
025
2020-10-23
jrmu
my ($bot, $nick, $userhost, $hand, $text) = @_;
026
2020-10-12
jrmu
...
027
2020-10-12
jrmu
}
028
2020-10-12
jrmu
029
2020-10-12
jrmu
2. PUB
030
2020-10-12
jrmu
031
2020-10-23
jrmu
bind "PUB" FLAGS COMMAND PROC
032
2020-10-23
jrmu
procname BOT NICK USERHOST HANDLE CHANNEL TEXT
033
2020-10-12
jrmu
034
2020-10-23
jrmu
bind("pub", "", "help", $proc);
035
2020-10-12
jrmu
sub proc {
036
2020-10-23
jrmu
my ($bot, $nick, $userhost, $hand, $chan, $text) = @_;
037
2020-10-12
jrmu
...
038
2020-10-12
jrmu
}
039
2020-10-12
jrmu
040
2020-10-12
jrmu
Called on commands in a channel. The first word of the msg is the command, and the rest
041
2020-10-12
jrmu
the text.
042
2020-10-12
jrmu
043
2020-10-12
jrmu
3. MSGM (stackable)
044
2020-10-12
jrmu
045
2020-10-23
jrmu
bind "MSGM" FLAGS MASK PROC
046
2020-10-23
jrmu
procname BOT NICK USERHOST HANDLE TEXT
047
2020-10-12
jrmu
048
2020-10-23
jrmu
bind("msgm", "", "", $proc);
049
2020-10-12
jrmu
sub proc {
050
2020-10-23
jrmu
my ($bot, $nick, $userhost, $hand, $text) = @_;
051
2020-10-12
jrmu
...
052
2020-10-12
jrmu
}
053
2020-10-12
jrmu
054
2020-10-12
jrmu
Match all text from a /msg. MSGM binds are processed before MSG binds.
055
2020-10-12
jrmu
056
2020-10-12
jrmu
4. PUBM (stackable)
057
2020-10-12
jrmu
058
2020-10-23
jrmu
bind "PUBM" FLAGS MASK PROC
059
2020-10-23
jrmu
procname BOT NICK USERHOST HANDLE CHAN TEXT
060
2020-10-12
jrmu
061
2020-10-23
jrmu
bind("pubm", "", "", $proc);
062
2020-10-12
jrmu
sub proc {
063
2020-10-23
jrmu
my ($bot, $nick, $userhost, $hand, $chan, $text) = @_;
064
2020-10-12
jrmu
...
065
2020-10-12
jrmu
}
066
2020-10-12
jrmu
067
2020-10-12
jrmu
Match all text from a message on a channel. PUBM binds are processed before PUB binds.
068
2020-10-12
jrmu
069
2020-10-12
jrmu
5. NOTC (stackable)
070
2020-10-12
jrmu
071
2020-10-23
jrmu
bind "NOTC" FLAGS MASK PROC
072
2020-10-23
jrmu
procname BOT NICK USERHOST HANDLE TEXT DEST
073
2020-10-12
jrmu
074
2020-10-23
jrmu
bind("notc", "", "", $proc);
075
2020-10-12
jrmu
sub proc {
076
2020-10-23
jrmu
my ($bot, $nick, $userhost, $hand, $text, $dest) = @_;
077
2020-10-12
jrmu
...
078
2020-10-12
jrmu
}
079
2020-10-12
jrmu
080
2020-10-12
jrmu
Called when a notice is sent. $dest is either the bot's nickname or channel.
081
2020-10-12
jrmu
You should not respond to a /notice, so this is useful for logging and analytics.
082
2020-10-12
jrmu
083
2020-10-12
jrmu
6. JOIN (stackable)
084
2020-10-12
jrmu
085
2020-10-23
jrmu
bind "JOIN" FLAGS MASK PROC
086
2020-10-23
jrmu
procname BOT NICK USERHOST HANDLE CHANNEL
087
2020-10-12
jrmu
088
2020-10-23
jrmu
bind("join", "", "", $proc);
089
2020-10-12
jrmu
sub proc {
090
2020-10-23
jrmu
my ($bot, $nick, $userhost, $hand, $chan) = @_;
091
2020-10-12
jrmu
...
092
2020-10-12
jrmu
}
093
2020-10-12
jrmu
094
2020-10-12
jrmu
Called when someone joins a channel.
095
2020-10-12
jrmu
096
2020-10-12
jrmu
7. PART (stackable)
097
2020-10-12
jrmu
098
2020-10-23
jrmu
bind "PART" FLAGS MASK PROC
099
2020-10-23
jrmu
procname BOT NICK USERHOST HANDLE CHANNEL TEXT
100
2020-10-12
jrmu
101
2020-10-23
jrmu
bind("part", "", "", $proc);
102
2020-10-12
jrmu
sub proc {
103
2020-10-23
jrmu
my ($bot, $nick, $userhost, $hand, $chan, $text) = @_;
104
2020-10-12
jrmu
...
105
2020-10-12
jrmu
}
106
2020-10-12
jrmu
107
2020-10-12
jrmu
Called when someone parts a channel.