I have this script that allows me to monitor all activity and send the echo to another room to view without having to actually be in the room.
However, though it works ok, I keep receiving errors such as:
<MonitorBot> [20:52] Tcl error [pmsg]: invalid command name "pmsg"
<MonitorBot> [20:52] Tcl error [pmsg]: invalid command name "pmsg"
<MonitorBot> [20:52] Tcl error [pmsg]: invalid command name "pmsg"
<MonitorBot> [20:52] Tcl error [pmsg]: invalid command name "pmsg"
<MonitorBot> [20:52] Tcl error [joined]: invalid command name "![$chan == "#channelservices" || $chan == "#channelservices1""
<MonitorBot> [20:52] Tcl error [mode]: invalid command name "mode"
<MonitorBot> [20:52] Tcl error [pmsg]: invalid command name "pmsg"
Would someone please look over this code and tell me where its going wrong? I'd greatly appreciate it.
Code: Select all
bind JOIN - * joined
bind PART - * part
bind SIGN - * quit
bind MODE - * mode
bind KICK - * kick
bind NICK - * nick
bind TOPC - * topic
bind PUBM - * pmsg
#SETTINGS#
#the channel you would like all msgs sent to#"
set ss "#channelservices"
#dont touch this is the version number#
set ver "7.1.1"
set lastauthor "PlayDough"
set alert "#channelservices"
#TCL CODE DONT EDIT!#
proc putnow { a } {
append a "\n"
putdccraw 0 [string length $a] $a
}
proc joined { nick uhost hand chan args } {
set uhost [getchanhost $nick]
{![$chan == "#channelservices" || $chan == "#channelservices1"}
{
putnow "PRIVMSG #channelservices : -\002\0033JOINS\003\002- \[$chan\] $nick \[$nick!$uhost\]"
}
proc part { nick uhost hand chan args} {
set uhost [getchanhost $nick]
{![$chan == "#channelservices" || $chan == "#freeservices"}
{
putnow "PRIVMSG #channelservices : -\002\0033JOINS\003\002- \[$chan\] $nick \[$nick!$uhost\]"
}
proc part { nick uhost hand chan args} {
putnow "PRIVMSG #channelservices : -\0033\002Parts\002\003-\[$chan\] $nick"
}
proc quit { nick uhost hand chan reason } {
putnow "PRIVMSG #channelservices : -\002\0033QUITS\003\002- $nick has quit ($reason)"
}
proc mode { nick uhost handle chan mode target } {
putnow "PRIVMSG #channelservices : -MODES- $nick set to $mode $target on $chan"
}
proc kick { nick uhost handle chan target reason } {
putnow "PRIVMSG #channelservices : -\0033KICK\0033- $nick kicked $target \002\0034$reason\003\002 - $chan" }
proc nick { nick uhost handle chan newnick } {
putnow "PRIVMSG #channelservices : -NICK- $nick changed their nick to $newnick"
}
proc topic { nick uhost hand chan topic } {
putnow "PRIVMSG #channelservices : -TOPIC- $nick changed the topic on $chan to: $topic"
}
}
Thanks in advance!
[/code]