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.

mirc code to tcl?

Old posts that have not been replied to for several years.
Locked
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

mirc code to tcl?

Post by Doom »

Code: Select all

on @*:op:#Sandzak:{ if ($nick == ChanServ) && ($opnick != $me) && ($opnick != user1{ cs why $chan $opnick }
can someone traslate this to .tcl? and add so it logs everynick bot have done why on in why.log

and how to make so bot log all Chanserv notices into chanserv.txt?
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Re: mirc code to tcl?

Post by GodOfSuicide »

Code: Select all

bind mode - "* +o" modecheck
proc modecheck {nick uhost hand chan mc vict} {
  if {$chan == #Sandzak} {
    if {$nick == ChanServ && [matchattr $hand -|o $chan] && $nick == $::botnick} {
      <YOURSTUFFHERE>
    }
  }
}
dunno if it works, i just woke up
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind mode - "* +o" modecheck 
proc modecheck {nick uhost hand chan mc vict} { 
  if {$chan == #Sandzak} {
   if {$victim == $::botnick} {return 0} 
    if {$nick == ChanServ && [matchattr $hand -|o $chan]} { 
      putserv "PRIVMSG Chanserv@services.dal.net :why $chan $victim" 
    } 
  } 
}
this one works on DALnet services. I'm also not sure of it though.
User avatar
devilsoulblack
Halfop
Posts: 62
Joined: Wed Nov 19, 2003 9:18 pm
Location: Chile
Contact:

Post by devilsoulblack »

can someone traslate this to .tcl

Code: Select all

ON @*:DEOP:#: { if ($opnick == $me) {
msg chanserv@services.dal.net op $chan $me
}
}
---------
Add [SOLVED] to the thread title if your issue has been.
Search - FAQ
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

If youw ant such script for protect bot, use this one.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

OpTimuS-PrimuS, you dont have to use a script. instead use chansets to set need-op.

in partyline:
.chanset #channel need-op putserv "PRIVMSG chanserv@services.dal.net :op #channel $botnick"
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Lil tip: If you want to post a topic with :o then use the "Disable Smilies in this post" function.
Once the game is over, the king and the pawn go back in the same box.
User avatar
devilsoulblack
Halfop
Posts: 62
Joined: Wed Nov 19, 2003 9:18 pm
Location: Chile
Contact:

Post by devilsoulblack »

Sir_Fz wrote:OpTimuS-PrimuS, you dont have to use a script. instead use chansets to set need-op.

in partyline:
.chanset #channel need-op putserv "PRIVMSG chanserv@services.dal.net :op #channel $botnick"

(13:07:48) <]OpTimuS-PrImuS[> .chanset #machala need-op putserv "PRIVMSG chanserv@services.dal.net p #machala $botnick
(13:07:49) <(DeVilSoulBlacK> Due to security concerns, only permanent owners can set these modes.

this eror giveme
---------
Add [SOLVED] to the thread title if your issue has been.
Search - FAQ
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

OpTimuS-PrimuS wrote:(13:07:49) <(DeVilSoulBlacK> Due to security concerns, only permanent owners can set these modes.

this eror giveme
I guess that's a good thing, as the code you pasted is missing two vital chars ":o" before that single p :) Add your handle to the owner-variable in your config and .rehash and try again with the corrected string.
Have you ever read "The Manual"?
User avatar
devilsoulblack
Halfop
Posts: 62
Joined: Wed Nov 19, 2003 9:18 pm
Location: Chile
Contact:

Post by devilsoulblack »

]Kami[ wrote:If youw ant such script for protect bot, use this one.
this its QuakeNet deop protection a search dal.net deop protection
---------
Add [SOLVED] to the thread title if your issue has been.
Search - FAQ
User avatar
devilsoulblack
Halfop
Posts: 62
Joined: Wed Nov 19, 2003 9:18 pm
Location: Chile
Contact:

Post by devilsoulblack »

user wrote:
OpTimuS-PrimuS wrote:(13:07:49) <(DeVilSoulBlacK> Due to security concerns, only permanent owners can set these modes.

this eror giveme
I guess that's a good thing, as the code you pasted is missing two vital chars ":o" before that single p :) Add your handle to the owner-variable in your config and .rehash and try again with the corrected string.

(13:21:57) <]OpTimuS-PrImuS[> .chanset #machala need-op putserv "PRIVMSG chanserv@services.dal.net :op #machala $botnick
(13:22:00) <(DeVilSoulBlacK> Due to security concerns, only permanent owners can set these modes.

:(
---------
Add [SOLVED] to the thread title if your issue has been.
Search - FAQ
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

]Kami[ wrote:If youw ant such script for protect bot, use this one.
This post would be so much more worth if you mentioned the name of the script. But I guess you can't waste those 5 seconds, right? You're here for the post count.
Have you ever read "The Manual"?
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Check your head

Post by user »

OpTimuS-PrimuS wrote:
user wrote:Add your handle to the owner-variable in your config and .rehash and try again with the corrected string.
Have you ever read "The Manual"?
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

user wrote:
]Kami[ wrote:If youw ant such script for protect bot, use this one.
This post would be so much more worth if you mentioned the name of the script. But I guess you can't waste those 5 seconds, right? You're here for the post count.
If i would be on forum for post count, egghelp would be last forum for "spamm"....
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

]Kami[ wrote:If i would be on forum for post count, egghelp would be last forum for "spamm"....
he just refered to his own quote, which is the solution to the problem

close topic befor ]kami[ goes on.....[/b]
Locked