… | |
… | |
113 | $who->{neko_attack} = 0; |
113 | $who->{neko_attack} = 0; |
114 | } |
114 | } |
115 | |
115 | |
116 | $who->{neko_last_attack} = time; |
116 | $who->{neko_last_attack} = time; |
117 | $who->{neko_attack}++ |
117 | $who->{neko_attack}++ |
118 | or cf::LOG cf::llevDebug, sprintf "QBERT Neko-san was attacked by %s!\n", $who->name; |
118 | or cf::ext::schmorp_irc::do_notice "Neko-san was attacked by ". $who->name . "!\n"; |
119 | |
119 | |
120 | $who->message ("Meoow! (Please do not hurt me)") |
120 | $who->message ("Meoow! (Please do not hurt me)") |
121 | if !($who->{neko_attack} & 15); |
121 | if !($who->{neko_attack} & 15); |
122 | |
122 | |
123 | if ($who->{neko_attack} > 512) { |
123 | if ($who->{neko_attack} > 512) { |
… | |
… | |
133 | |
133 | |
134 | sub on_say { |
134 | sub on_say { |
135 | my ($event, $ob, $who, $msg) = @_; |
135 | my ($event, $ob, $who, $msg) = @_; |
136 | |
136 | |
137 | cf::LOG cf::llevDebug, sprintf "QBERT [Neko-fon] %s: %s\n", $who->name, $msg; |
137 | cf::LOG cf::llevDebug, sprintf "QBERT [Neko-fon] %s: %s\n", $who->name, $msg; |
|
|
138 | cf::ext::schmorp_irc::do_notice (sprintf "[Neko-fon] %s: %s\n", $who->name, $msg); |
138 | } |
139 | } |
139 | |
140 | |