Spy Everything spoken on the spy chan and deliver everything on the chan that the bot is in ;)
on *:text:*:#: {
if (!chanspy == $1) {
%spy.mpe = $chan
%spy.room = $2
%spy.enabled = true
join %spy.room
msg $chan Chan Spy on %spy.room iS Now EnaBleD
}
elseif (!unspy == $1) {
msg %spy.mpe Chan Spy on %spy.room iS Now DisABleD
part %spy.room
unset %spy.*
}
else {
if (%spy.enabled) && (%spy.room == $chan) {
msg %spy.mpe >>> $v1 ( $nick ) $1-
}
}
}
on :text::#: {
if ($nick isop $chan) {
if (!chanspy == $1) && ($2) {
.set %spy.room $2
.set %spy.enabled yes
.set %spy.headchannel $chan
.join %spy.room
.raw -q PRIVMSG %spy.headchannel : Enabled the channel spy on %spy.room
}
elseif (!unspy == $1) && ($2) && (%spy.headchannel) {
.raw -q PRIVMSG %spy.headchannel : Disabled the channel spy on %spy.room
.part %spy.room
.unset %spy.*
}
else {
if (%spy.enabled) && (%spy.room == $chan) {
.raw -q PRIVMSG %spy.headchannel : ‹ $+ $v1 $+ › ›› $nick $+ : $1-
}
}
}
}
BlackDragon, what do you think of this<-, I fixed it, kind of:p
on :text::#: {
if (!chanspy == $1) {
%spy.mpe = $chan
%spy.room = $2
%spy.enabled = true
join %spy.room
msg $chan Chan Spy on %spy.room iS Now EnaBleD
}
elseif (!unspy == $1) {
msg %spy.mpe Chan Spy on %spy.room iS Now DisABleD
part %spy.room
unset %spy.*
}
else {
if (%spy.enabled) && (%spy.room == $chan) {
msg %spy.mpe >>> $v1 ( $nick ) $1-
}
}
}
on :text::#: {
if (!chanspy == $1) {
%mpe.room = $chan
%spy.room = $2
%spy.enabled = true
join %spy.room
msg %mpe.room Chan Spy on %spy.room iS Now EnaBleD
}
^^^ missing a bracket here
lol
should be like this :)
on :text::#: {
if (!chanspy == $1) {
%mpe.room = $chan
%spy.room = $2
%spy.enabled = true
join %spy.room
msg %mpe.room Chan Spy on %spy.room iS Now EnaBleD
}
}
<#test>
(23:59:18) <@BlackDragon> !chanspy #lol
(23:59:20) Chan Spy on #lol iS Now EnaBleD
<#lol>
(00:00:12) * AnGeLLuS (~BA@5FF5012E.923DE169.6481A543.IP) has joined #lol
(00:00:31) sfdgasdgasg
(00:00:31) arga
<#test>
(00:00:31) 3>>> #lol (00:00:31): sfdgasdgasg
(00:00:32) 3>>> #lol (00:00:31): arga
(00:00:33) 3>>> #lol (00:00:32): rga
(00:01:40) !unspy
(00:01:42) * AnGeLLuS (~BA@5FF5012E.923DE169.6481A543.IP) has left #lol
<#test>
(00:01:41) 3>>> #lol (00:01:40): !unspy
(00:01:42) Chan Spy on #lol iS Now DisABleD
Not too significant, but if you plan to use a lot of variables in the future, you should prefix them with something like spyscript. Example: %Spyscript.room.
So at the end of the script you can just do unset %spyscript.* ( The prefix can be anything, but im not sure if you already have something prefixed with spy ).
Just a thought ;)