This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Report script

Old posts that have not been replied to for several years.
Locked
W
Winters
Voice
Posts: 29
Joined: Sat Jul 09, 2005 12:24 pm

Report script

Post by Winters »

Hi @ all me again ^^.

I just want a script wich report ban, kick,deop on the bot
just like that:
Tester1 sets mode: -o Bot
Bot: Tester1 deopped mi in #channel
Tester1 sets mode; +b *!*@bothost.com
Bot: Tester1 banned me in #channel
Tester1 kicked bot from #channel
Bot: Tester1 kicked me from #channel!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

This is an example on how to report a deop:

Code: Select all

bind mode - "* -o" report:mc

proc report:mc {nick uhost hand chan mc targ} {
 if {[isbotnick $targ] && ![isbotnick $nick]} {
  puthelp "PRIVMSG $chan :$nick deoped me on $chan."
 }
}
This will report if someone (besides the bot) deops the bot. Read tcl-commands.doc to know how to do the same with other binds.
Locked