<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/4312" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-05-08T07:14:18-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/4312</id>

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-08T07:14:18-04:00</updated>

		<published>2003-05-08T07:14:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19952#p19952</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19952#p19952"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19952#p19952"><![CDATA[
That will teach me to post without checking to see if things make sence <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>The pub bind uses only a single word for the mask. No space can be used, as the text from IRC is only a single word.<br><br>You can't use any matching maracters like mildcards (*, %, ?), as it is done by exact text alone.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu May 08, 2003 7:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-08T06:50:24-04:00</updated>

		<published>2003-05-08T06:50:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19949#p19949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19949#p19949"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19949#p19949"><![CDATA[
Somehow I've successfull failed to understand exactly what you mean by that "no matching" thing. Well, yes, the botnick is the command and the rest are the arguments. It's exactly the same thing as an normal bind for let's say !op. !op is the command and the rest are the arguments. Anyway, if he will use the "switch -exact" as I've recomanded will be fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu May 08, 2003 6:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-08T06:44:22-04:00</updated>

		<published>2003-05-08T06:44:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19945#p19945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19945#p19945"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19945#p19945"><![CDATA[
<blockquote class="uncited"><div>bind pub o|o <strong class="text-strong">"% $botnick"</strong> pub_commands</div></blockquote>This still needs to be revised though. The pub bind only uses a single argument, with no matching characters (all are literal).<br><br>Allthough the bind system will still pass "% &lt;bots nickname&gt;" as a whole for matching, only the first word from the incoming IRC string is used.<br><br>Because 1 word can't have a space, it's a instant no-match.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu May 08, 2003 6:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-08T05:49:49-04:00</updated>

		<published>2003-05-08T05:49:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19935#p19935</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19935#p19935"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19935#p19935"><![CDATA[
Actualy it's bind pub, not bind pubm. It's pub cos the command will be bot's nick and the rest will be the arguments. ex. botnick op foo. So I was right in the first place.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu May 08, 2003 5:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-07T01:47:26-04:00</updated>

		<published>2003-05-07T01:47:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19899#p19899</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19899#p19899"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19899#p19899"><![CDATA[
Oups..  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> pubm I mean.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed May 07, 2003 1:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-06T05:06:59-04:00</updated>

		<published>2003-05-06T05:06:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19871#p19871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19871#p19871"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19871#p19871"><![CDATA[
caesar. The above code would not work.<br><br>The pub bind takes only a single work for the mask.<br><br>There are two ways around this.<br><br>1: Use only $botnick for the mask.<br><br>2: Use the pubm bind and change the mask to "% $botnick *"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue May 06, 2003 5:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-06T02:26:23-04:00</updated>

		<published>2003-05-06T02:26:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19870#p19870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19870#p19870"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19870#p19870"><![CDATA[
You can use something like:<div class="codebox"><p>Code: </p><pre><code>bind pub o|o "% $botnick" pub_commandsproc pub_commands {nick hand uhost chan arg} {switch -exact -- [string tolower $arg] { "bla" { bla bla bla}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue May 06, 2003 2:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-05T12:16:23-04:00</updated>

		<published>2003-05-05T12:16:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19829#p19829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19829#p19829"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19829#p19829"><![CDATA[
Very good point. I hadn't thought about that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon May 05, 2003 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-05T12:06:33-04:00</updated>

		<published>2003-05-05T12:06:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19826#p19826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19826#p19826"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19826#p19826"><![CDATA[
<blockquote class="uncited"><div>i`d like to replace the command char wich is ! for the botnick so instead of typing !op on a channel, i`d type botnick op</div></blockquote>Replacing the '!' in '!op' with 'botnick' would result in 'botnickop', not 'botnick op'. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><br>The script you pasted here use pub binds that trigger separate procs, so changing it the way you want would require a total rewrite or a "proxy" proc passing your request on to the right one of the existing procs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 05, 2003 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-05T12:04:56-04:00</updated>

		<published>2003-05-05T12:04:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19825#p19825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19825#p19825"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19825#p19825"><![CDATA[
Beleive it or not, use<br><br>find, and change<br><div class="codebox"><p>Code: </p><pre><code>set god(prefix) $botnick</code></pre></div>Try not to post large amounts of code like this. It takes up system space and rescources. Upload to some web-space and provide a link from now on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon May 05, 2003 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-05-05T00:21:40-04:00</updated>

		<published>2003-05-05T00:21:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19810#p19810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19810#p19810"/>
		<title type="html"><![CDATA[replacing cmd char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19810#p19810"><![CDATA[
Hi ,<br><br>i have a public command script who use the format  cmd char ( !) then the command like !op !deop etc..<br><br>i`d like to replace the command char wich is ! for the botnick so instead of typing !op on a channel, i`d type botnick op <br><br>here`s the code <br><div class="codebox"><p>Code: </p><pre><code>############################################################                                                         ##  #### #### ###     #### #### ##  # ##### ### #### #     ##  #    #  # #  #    #    #  # # # #   #   # # #  # #     ##  # ## #  # #  #    #    #  # # # #   #   ##  #  # #     ##  #### #### ###     #### #### #  ##   #   # # #### ####  ##                                                         #############################################################   Ce TCL est entièrement fait par oUr0sTucK et il est   ##           fait pour tout faire (le TCL la) :)           ############################################################################## Configuration ################### Votre channel principaleset god(home) "#loving #poetes #pitchat"# Choisissez le caractere devant les commandes Ex.: ! @ ? $set god(prefix) "!"# Message de bienvenue aux joins (par défault) ? OUI ou NONset god(welcome) "NON"set god(welcome.text) "Bienvenue sur #loving amusez-vous bien dans notre canal :-)"# PS: Si vous mettez la commande [userlist |n $chan] dans le texte, il dira les owners du chan.# Détecteur de clone ? OUI ou NONset god(clonedetect) "NON"############# Services ############## Est-ce que votre eggdrop est pour un service (Ex.: EggRawz Service) ? OUI ou NONset god(service) "NON"set god(service.chan) "#Channel"# Voulez-vous un message spécial lorsque quelqu'un join votre channel ? OUI ou NONset god(service.welcome) "NON"set god(service.welcome.text) "Vous venez d`entrer dans un canal privé A vos risques et perils !!! :-)"# Mentionner lorsque le eggdrop est opé ou déopé ? OUI ou NONset god(service.opdeop) "NON"####################################            Commandes            ##     recommendé de pas toucher   ## Risque: faire planté le eggdrop ####################################### Op, Deop, Voice, Devoice, Kick, Ban, Unban, Topic, Addowner, Addmaster,### Addop, Addvoice, Addauto-op, Delauto-op, Deluser, Delowner, Delmaster, Delop,### Delvoice, Join, Cycle, Remove, Mode, Addbot, Delbot, Help, List.# Op #bind pub o|o [string trim $god(prefix)]op pub_opproc pub_op {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 1} {  return 0 } if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {![botisop $chan]} {  puthelp "NOTICE $nick :Euh j'ai tu l'air d'un dieu ?"  return 0 } if {[lindex $text 0]!=""} {  if {[onchan [lindex $text 0] $chan] == 0} {   puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."   return 0  }  pushmode $chan +o [lindex $text 0]  return 0 } pushmode $chan +o $nick}# Deop #bind pub o|o [string trim $god(prefix)]deop pub_deopproc pub_deop {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  putserv "KICK $chan $nick Oups... me suis tromper :P"  return 0 } if {[lindex $text 0]!=""} {  if {[onchan [lindex $text 0] $chan] == 0} {   puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."   return 0  }  pushmode $chan -o [lindex $text 0]  return 0 } pushmode $chan -o $nick}# Voice #bind pub o|o [string trim $god(prefix)]voice pub_voiceproc pub_voice {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0]!=""} {  if {[onchan [lindex $text 0] $chan] == 0} {   puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."   return 0  }  pushmode $chan -o [lindex $text 0]  pushmode $chan +v [lindex $text 0]  return 0 } pushmode $chan -o $nick pushmode $chan +v $nick}# Devoice #bind pub o|o [string trim $god(prefix)]devoice pub_devoiceproc pub_devoice {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0]!=""} {  if {[onchan [lindex $text 0] $chan] == 0} {   puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."   return 0  }  pushmode $chan -v [lindex $text 0]  return 0 } pushmode $chan -v $nick}# Kick #bind pub o|o [string trim $god(prefix)]kick pub_kickproc pub_kick {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  putserv "KICK $chan $nick Oups... me suis tromper :P"  return 0 } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]kick &lt;nick&gt; \[message\]"  return 0 } if {[onchan [lindex $text 0] $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."  return 0 } if {[lindex $text 0]!=""} {  if {[matchattr [lindex $text 0] |m $chan] == 0} {   putserv "kick $chan [lindex $text 0] [lrange $text 1 end]"   return 0  }  if {[matchattr [lindex $text 0] |m $chan] == 1} {   if {[matchattr $hand |m $chan] == 0} {    if {[matchattr $hand o] != 1} {     puthelp "NOTICE $nick :Tu ne peux pas kicker un superieur !"     return 0    }   }   putserv "kick $chan [lindex $text 0] [lrange $text 1 end]"  } }}# Ban #bind pub o|o [string trim $god(prefix)]ban pub_banproc pub_ban {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  putserv "KICK $chan $nick Oups... me suis tromper :P"  return 0 } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]ban &lt;nick&gt; \[message\]"  return 0 } if {[onchan [lindex $text 0] $chan] == 0} {  putserv "MODE $chan +b [lindex $text 0]"  return 0 } if {[lindex $text 0]!=""} {  append userhost [lindex $text 0] "!*" [getchanhost [lindex $text 0] $chan]  set hostmask [maskhost $userhost]  if {[matchattr [lindex $text 0] |m $chan] == 0} {   putserv "mode $chan +b $hostmask"   putserv "kick $chan [lindex $text 0] [lrange $text 1 end]"   return 0  }  if {[matchattr [lindex $text 0] |m $chan] == 1} {   if {[matchattr $hand |m $chan] == 0} {    if {[matchattr $hand o] != 1} {     puthelp "NOTICE $nick :Tu ne peux pas bannir un superieur !"     return 0    }   }   putserv "mode $chan +b $hostmask"   putserv "kick $chan [lindex $text 0] [lrange $text 1 end]"  } }}# Unban #bind pub o|o [string trim $god(prefix)]unban pub_unbanproc pub_unban {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]unban &lt;hostmask&gt;"  return 0 } if {[lindex $text 0]!=""} {  putserv "mode $chan -b [lindex $test 0] }}# Topic #bind pub o|o [string trim $god(prefix)]topic pub_topicproc pub_topic {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]topic &lt;texte&gt;"  return 0 } putserv "TOPIC $chan [lrange $text 0 end]"}# Addowner #bind pub n| [string trim $god(prefix)]addowner pub_addownerproc pub_addowner {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0]==""} {  if {[matchattr $hand n] == 1} {   puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addowner &lt;nick&gt; \[all\]"   return 0  }  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addowner &lt;nick&gt;"  return 0 } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[onchan [lindex $text 0] $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand n] == 1} {   if {[validuser [lindex $text 0]] == 0} {    adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]    chattr [lindex $text 0] +n    puthelp "NOTICE $nick :[lindex $text 0] est maintenant global owner."    puthelp "NOTICE [lindex $text 0] :Tu es maintenant global owner."    puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"    return 0   }   if {[validuser [lindex $text 0]] == 1} {    chattr [lindex $text 0] +n    puthelp "NOTICE $nick :[lindex $text 0] est maintenant global owner."    puthelp "NOTICE [lindex $text 0] :Tu es maintenant global owner."    return 0   }  } } if {[validuser [lindex $text 0]] == 0} {  adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]  chattr [lindex $text 0] |+n $chan  puthelp "NOTICE $nick :[lindex $text 0] est maintenant owner de $chan."  puthelp "NOTICE [lindex $text 0] :Tu es maintenant owner de $chan."  puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"  putserv "MODE $chan +o [lindex $text 0]"  return 0 } if {[validuser [lindex $text 0]] == 1} {  chattr [lindex $text 0] |+n $chan  puthelp "NOTICE $nick :[lindex $text 0] est maintenant owner de $chan."  puthelp "NOTICE [lindex $text 0] :Tu es maintenant owner de $chan."  putserv "MODE $chan +o [lindex $text 0]" }}# Addmaster #bind pub n|n [string trim $god(prefix)]addmaster pub_addmasterproc pub_addmaster {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  if {[matchattr $hand n] == 1} {   puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addmaster &lt;nick&gt; \[all\]"   return 0  }  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addmaster &lt;nick&gt;"  return 0 } if {[onchan [lindex $text 0] $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand n] == 1} {   if {[validuser [lindex $text 0]] == 0} {    adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]    chattr [lindex $text 0] +m    puthelp "NOTICE $nick :[lindex $text 0] est maintenant global master."    puthelp "NOTICE [lindex $text 0] :Tu es maintenant global master."    puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"    return 0   }   if {[validuser [lindex $text 0]] == 1} {    chattr [lindex $text 0] +m    puthelp "NOTICE $nick :[lindex $text 0] est maintenant global master."    puthelp "NOTICE [lindex $text 0] :Tu es maintenant global master."    return 0   }  } } if {[validuser [lindex $text 0]] == 0} {  adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]  chattr [lindex $text 0] |+m $chan  puthelp "NOTICE $nick :[lindex $text 0] est maintenant master de $chan."  puthelp "NOTICE [lindex $text 0] :Tu es maintenant master de $chan."  puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"  putserv "MODE $chan +o [lindex $text 0]"  return 0 } if {[validuser [lindex $text 0]] == 1} {  chattr [lindex $text 0] -|+m $chan  puthelp "NOTICE $nick :[lindex $text 0] est maintenant master de $chan."  puthelp "NOTICE [lindex $text 0] :Tu es maintenant master de $chan."  putserv "MODE $chan +o [lindex $text 0]" }}# Addop #bind pub m|m [string trim $god(prefix)]addop pub_addopproc pub_addop {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  if {[matchattr $hand m] == 1} {   puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addop &lt;nick&gt; \[all\]"   return 0  }  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addop &lt;nick&gt;"  return 0 } if {[onchan [lindex $text 0] $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand m] == 1} {   if {[validuser [lindex $text 0]] == 0} {    adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]    chattr [lindex $text 0] +o    puthelp "NOTICE $nick :[lindex $text 0] est maintenant global operateur."    puthelp "NOTICE [lindex $text 0] :Tu es maintenant global operateur."    puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"    return 0   }   if {[validuser [lindex $text 0]] == 1} {    chattr [lindex $text 0] +o    puthelp "NOTICE $nick :[lindex $text 0] est maintenant global operateur."    puthelp "NOTICE [lindex $text 0] :Tu es maintenant global operateur."    return 0   }  } } if {[validuser [lindex $text 0]] == 0} {  adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]  chattr [lindex $text 0] |+o $chan  puthelp "NOTICE $nick :[lindex $text 0] est maintenant operateur de $chan."  puthelp "NOTICE [lindex $text 0] :Tu es maintenant operateur de $chan."  puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"  putserv "MODE $chan +o [lindex $text 0]"  return 0 } if {[validuser [lindex $text 0]] == 1} {  chattr [lindex $text 0] |+o $chan  puthelp "NOTICE $nick :[lindex $text 0] est maintenant operateur de $chan."  puthelp "NOTICE [lindex $text 0] :Tu es maintenant operateur de $chan."  putserv "MODE $chan +o [lindex $text 0]" }}# Addvoice #bind pub o|o [string trim $god(prefix)]addvoice pub_addvoiceproc pub_addvoice {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  if {[matchattr $hand o] == 1} {   puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addvoice &lt;nick&gt; \[all\]"   return 0  }  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addvoice &lt;nick&gt;"  return 0 } if {[onchan [lindex $text 0] $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand o] == 1} {   if {[validuser [lindex $text 0]] == 0} {    adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]    chattr [lindex $text 0] +v    puthelp "NOTICE $nick :[lindex $text 0] est maintenant global voice."    puthelp "NOTICE [lindex $text 0] :Tu es maintenant global voice."    puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"    return 0   }   if {[validuser [lindex $text 0]] == 1} {    chattr [lindex $text 0] +v    puthelp "NOTICE $nick :[lindex $text 0] est maintenant global voice."    puthelp "NOTICE [lindex $text 0] :Tu es maintenant global voice."    return 0   }  } } if {[validuser [lindex $text 0]] == 0} {  adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]  chattr [lindex $text 0] |+v $chan  puthelp "NOTICE $nick :[lindex $text 0] est maintenant voice de $chan."  puthelp "NOTICE [lindex $text 0] :Tu es maintenant voice de $chan."  puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"  putserv "MODE $chan +v [lindex $text 0]"  return 0 } if {[validuser [lindex $text 0]] == 1} {  chattr [lindex $text 0] |+v $chan  puthelp "NOTICE $nick :[lindex $text 0] est maintenant voice de $chan."  puthelp "NOTICE [lindex $text 0] :Tu es maintenant voice de $chan."  putserv "MODE $chan +v [lindex $text 0]" }}# Addauto-op #bind pub m|m [string trim $god(prefix)]addauto-op pub_addauto-opproc pub_addauto-op {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  if {[matchattr $hand m] == 1} {   puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addauto-op &lt;nick&gt; \[all\]"   return 0  }  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addauto-op &lt;nick&gt;"  return 0 } if {[onchan [lindex $text 0] $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand m] == 1} {   if {[validuser [lindex $text 0]] == 0} {    adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]    chattr [lindex $text 0] +a    puthelp "NOTICE $nick :[lindex $text 0] a maintenant un global auto-op."    puthelp "NOTICE [lindex $text 0] :Tu as maintenant un global auto-op."    puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"    return 0   }   if {[validuser [lindex $text 0]] == 1} {    chattr [lindex $text 0] +a    puthelp "NOTICE $nick :[lindex $text 0] a maintenant un global auto-op."    puthelp "NOTICE [lindex $text 0] :Tu as maintenant un global auto-op."    return 0   }  } } if {[validuser [lindex $text 0]] == 0} {  adduser [lindex $text 0] [maskhost [getchanhost [lindex $text 0] $chan]]  chattr [lindex $text 0] |+a $chan  puthelp "NOTICE $nick :[lindex $text 0] a maintenant un auto-op sur $chan."  puthelp "NOTICE [lindex $text 0] :Tu as maintenant un auto-op sur $chan."  puthelp "NOTICE [lindex $text 0] :Tu dois setter ton pass (/msg $botnick pass &lt;password_voulu&gt;)"  putserv "MODE $chan +o [lindex $text 0]"  return 0 } if {[validuser [lindex $text 0]] == 1} {  chattr [lindex $text 0] |+a $chan  puthelp "NOTICE $nick :[lindex $text 0] a maintenant un auto-op sur $chan."  puthelp "NOTICE [lindex $text 0] :Tu as maintenant un auto-op sur $chan."  putserv "MODE $chan +o [lindex $text 0]" }}# Delauto-op #bind pub m|m [string trim $god(prefix)]delauto-op pub_delauto-opproc pub_delauto-op {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]delauto-op &lt;nick&gt;"  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand m] == 1} {   if {[matchattr [lindex $text 0] a] == 0} {    puthelp "NOTICE $nick :[lindex $text 0] n'a pas de global auto-op."    return 0   }   chattr [lindex $text 0] -a   puthelp "NOTICE $nick :[lindex $text 0] n'a plus de global auto-op."   puthelp "NOTICE [lindex $text 0] :Tu n'as plus de global auto-op."   return 0  } } if {[matchattr [lindex $text 0] |a $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'a pas d'auto-op sur $chan."  return 0 } chattr [lindex $text 0] |-a $chan puthelp "NOTICE $nick :[lindex $text 0] n'a plus d'auto-op sur $chan." puthelp "NOTICE [lindex $text 0] :Tu n'as plus d'auto-op sur $chan."}# Deluser #bind pub n|n [string trim $god(prefix)]deluser pub_deluserproc pub_deluser {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  if {[matchattr $hand n] == 1} {   puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]deluser &lt;nick&gt; \[all\]"   return 0  }  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]deluser &lt;nick&gt;"  return 0 } if {[validuser [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'a pas d'access"  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand n] == 1} {   deluser [lindex $text 0]   puthelp "NOTICE $nick :[lindex $text 0] est enlever de ma userlist."   puthelp "NOTICE [lindex $text 0] :Tu est enlever de ma userlist."   return 0  } } chattr [lindex $text 0] |-nmofv $chan puthelp "NOTICE $nick :[lindex $text 0] est enlever de ma userlist de $chan." puthelp "NOTICE [lindex $text 0] :Tu est enlever de ma userlist de $chan."}# Delowner #bind pub n| [string trim $god(prefix)]delowner pub_delownerproc pub_delowner {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]delowner &lt;nick&gt;"  return 0 } if {[validuser [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'a pas d'access"  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand n] == 1} {   if {[matchattr [lindex $text 0] n] == 0} {    puthelp "NOTICE $nick :[lindex $text 0] n'est pas global owner."    return 0   }   chattr [lindex $text 0] -n   puthelp "NOTICE $nick :[lindex $text 0] n'est plus global owner."   puthelp "NOTICE [lindex $text 0] :Tu n'est plus global owner."   return 0  } } if {[matchattr [lindex $text 0] |n $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas owner de $chan."  return 0 } chattr [lindex $text 0] |-n $chan puthelp "NOTICE $nick :[lindex $text 0] n'est plus owner de $chan." putserv "MODE $chan -o [lindex $text 0]"}# Delmaster #bind pub n|n [string trim $god(prefix)]delmaster pub_delmasterproc pub_delmaster {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]delmaster &lt;nick&gt;"  return 0 } if {[validuser [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'a pas d'access"  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand n] == 1} {   if {[matchattr [lindex $text 0] m] == 0} {    puthelp "NOTICE $nick :[lindex $text 0] n'est pas global master."    return 0   }   chattr [lindex $text 0] -m   puthelp "NOTICE $nick :[lindex $text 0] n'est plus global master."   puthelp "NOTICE [lindex $text 0] :Tu n'est plus global master."   return 0  } } if {[matchattr [lindex $text 0] |m $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas master de $chan."  return 0 } chattr [lindex $text 0] |-m $chan puthelp "NOTICE $nick :[lindex $text 0] n'est plus master de $chan." putserv "MODE $chan -o [lindex $text 0]"}# Delop #bind pub m|m [string trim $god(prefix)]delop pub_delopproc pub_delop {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]delop &lt;nick&gt;"  return 0 } if {[validuser [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'a pas d'access"  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand m] == 1} {   if {[matchattr [lindex $text 0] o] == 0} {    puthelp "NOTICE $nick :[lindex $text 0] n'est pas global operateur."    return 0   }   chattr [lindex $text 0] -o   puthelp "NOTICE $nick :[lindex $text 0] n'est plus global operateur."   puthelp "NOTICE [lindex $text 0] :Tu n'est plus global operateur."   return 0  } } if {[matchattr [lindex $text 0] |o $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas operateur de $chan."  return 0 } chattr [lindex $text 0] |-o $chan puthelp "NOTICE $nick :[lindex $text 0] n'est plus operateur de $chan." putserv "MODE $chan -o [lindex $text 0]"}# Delvoice #bind pub o|o [string trim $god(prefix)]delvoice pub_delvoiceproc pub_delvoice {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]delvoice &lt;nick&gt;"  return 0 } if {[validuser [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'a pas d'access."  return 0 } if {[lindex $text 1] == "all"} {  if {[matchattr $hand o] == 1} {   if {[matchattr [lindex $text 0] v] == 0} {    puthelp "NOTICE $nick :[lindex $text 0] n'est pas global voice."    return 0   }   chattr [lindex $text 0] -v   puthelp "NOTICE $nick :[lindex $text 0] n'est plus global voice."   puthelp "NOTICE [lindex $text 0] :Tu n'est plus global voice."   return 0  } } if {[matchattr [lindex $text 0] |v $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas voice de $chan."  return 0 } chattr [lindex $text 0] |-v $chan puthelp "NOTICE $nick :[lindex $text 0] n'est plus voice de $chan." putserv "MODE $chan -v [lindex $text 0]"}# Join #bind pub n| [string trim $god(prefix)]join pub_joinproc pub_join {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]join &lt;#channel&gt;"  return 0 } if {[validchan [lindex $text 0]]} {  puthelp "NOTICE $nick :Je suis deja sur [lindex $text 0]."  return 0 } puthelp "NOTICE $nick :Je garde maintenant [lindex $text 0]." channel add [lindex $text 0] putserv "JOIN [lindex $text 0]"} # Cycle #bind pub n|n [string trim $god(prefix)]cycle pub_cycleproc pub_cycle {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]cycle &lt;#channel&gt;"  return 0 } if {[validchan [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :Je ne suis pas sur [lindex $text 0]."  return 0 } puthelp "NOTICE $nick :Je fait un cycle sur [lindex $text 0]." putserv "PART [lindex $text 0]"}# Remove #bind pub n| [string trim $god(prefix)]remove pub_removeproc pub_remove {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]remove &lt;#channel&gt;"  return 0 } if {[validchan [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :Je ne suis pas sur [lindex $text 0]."  return 0 } puthelp "NOTICE $nick :Je ne protege plus [lindex $text 0]." channel remove [lindex $text 0] putserv "PART [lindex $text 0]"}# Mode #bind pub o|o [string trim $god(prefix)]mode pub_modeproc pub_mode {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]mode &lt;modes&gt;"  return 0 } putserv "MODE $chan [lrange $text 0 end]"}# Addbot #bind pub n| [string trim $god(prefix)]addbot pub_addbotproc pub_addbot {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]=="" || [lindex $text 1]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]addbot &lt;nick&gt; &lt;port&gt;"  return 0 } if {[onchan [lindex $text 0] $chan] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas sur $chan."  return 0 } if {[validuser [lindex $text 0]] == 1} {  puthelp "NOTICE $nick :Ce bot existe deja !"  return 0 } if {[validuser [lindex $text 0]] == 0} {  addbot [lindex $text 0] [lindex [split [getchanhost [lindex $text 0] $chan] "@"] 1]:[lindex $text 1]  setuser [lindex $text 0] hosts [maskhost [getchanhost [lindex $text 0] $chan]]  chattr [lindex $text 0] +o  puthelp "NOTICE $nick :Ce bot est bien ajouter." }}# Delbot #bind pub n| [string trim $god(prefix)]delbot pub_delbotproc pub_delbot {nick uhost hand chan text} { global botnick god if {[matchattr $hand S] == 0} {  if {[matchattr $hand Q] == 0} {   puthelp "NOTICE $nick :Vous devez vous identifier (/msg $botnick id &lt;password&gt;)"   return 0  } } if {[lindex $text 0] == $botnick} {  puthelp "NOTICE $nick :lol ! t un ti rigolo toi ?"  return 0 } if {[lindex $text 0]==""} {  puthelp "NOTICE $nick :\002Quick HELP: [string trim $god(prefix)]delbot &lt;nick&gt;"  return 0 } if {[validuser [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :[lindex $text 0] n'est pas un bot valid."  return 0 } deluser [lindex $text 0] puthelp "NOTICE $nick :Ce bot est bien enlever."}# List #bind pub f|f [string trim $god(prefix)]list pub_listproc pub_list {nick uhost hand chan rest} { if {[lindex $rest 0] == ""} {  puthelp "NOTICE $nick :Voici la liste des \002GLOBALS\002 utilisateurs:"  puthelp "NOTICE $nick :\002OWNER:\002 [userlist n] ([llength [userlist +n]]) \002MASTER:\002 [userlist m] ([llength [userlist +m]]) \002OP:\002 [userlist o] ([llength [userlist +o]]) \002Auto-op:\002 [userlist a] ([llength [userlist +a]]) \002VOICE:\002 [userlist v] ([llength [userlist +v]])" } if {[lindex $rest 0] != ""} {  if {[validchan [lindex $rest 0]] == 0} {   puthelp "NOTICE $nick :Je ne suis pas sur [lindex $rest 0]."   return 0  }  puthelp "NOTICE $nick :Voici la liste des utilisateurs du channel \002[lindex $rest 0]\002:"  puthelp "NOTICE $nick :\002OWNER:\002 [userlist |n [lindex $rest 0]] ([llength [userlist |n [lindex $rest 0]]]) \002MASTER:\002 [userlist |m [lindex $rest 0]] ([llength [userlist |m [lindex $rest 0]]]) \002OP:\002 [userlist |o [lindex $rest 0]] ([llength [userlist |o [lindex $rest 0]]]) \002Auto-op:\002 [userlist |a [lindex $rest 0]] ([llength [userlist |a [lindex $rest 0]]]) \002VOICE:\002 [userlist |v [lindex $rest 0]] ([llength [userlist |v [lindex $rest 0]]])" }} # Help #bind pub o|o [string trim $god(prefix)]help pub_helpproc pub_help {nick uhost hand chan text} { global botnick god if {[matchattr $hand n] == 1} {  puthelp "NOTICE $nick :\002¤-¤-¤ OWNER ¤-¤-¤"  puthelp "NOTICE $nick :[string trim $god(prefix)]op \[nick\], [string trim $god(prefix)]deop \[nick\], [string trim $god(prefix)]voice \[nick\], [string trim $god(prefix)]devoice \[nick\], [string trim $god(prefix)]kick &lt;nick&gt; \[reason\], [string trim $god(prefix)]ban &lt;nick&gt; \[reason\], [string trim $god(prefix)]unban &lt;nick ou host&gt;, [string trim $god(prefix)]topic &lt;texte&gt;, [string trim $god(prefix)]addowner &lt;nick&gt; \[all\], [string trim $god(prefix)]addmaster &lt;nick&gt; \[all\], [string trim $god(prefix)]addop &lt;nick&gt; \[all\], [string trim $god(prefix)]addvoice &lt;nick&gt; \[all\], [string trim $god(prefix)]addauto-op &lt;nick&gt; \[all\], [string trim $god(prefix)]delowner &lt;nick&gt; \[all\]"  puthelp "NOTICE $nick :[string trim $god(prefix)]delmaster &lt;nick&gt; \[all\], [string trim $god(prefix)]delop &lt;nick&gt; \[all\], [string trim $god(prefix)]delauto-op &lt;nick&gt; \[all\], [string trim $god(prefix)]delvoice &lt;nick&gt; \[all\], [string trim $god(prefix)]deluser &lt;nick&gt; \[all\], [string trim $god(prefix)]join &lt;#channel&gt;, [string trim $god(prefix)]cycle &lt;#channel&gt;, [string trim $god(prefix)]remove &lt;#channel&gt;, [string trim $god(prefix)]mode &lt;mode&gt;, [string trim $god(prefix)]addbot &lt;nick&gt; &lt;port&gt;, [string trim $god(prefix)]delbot &lt;nick&gt;, [string trim $god(prefix)]list \[#channel\]" } if {([matchattr $hand n] == 0) &amp;&amp; ([matchattr $hand m] == 1)} {  puthelp "NOTICE $nick :\002¤-¤-¤ MASTER ¤-¤-¤"  puthelp "NOTICE $nick :[string trim $god(prefix)]op \[nick\], [string trim $god(prefix)]deop \[nick\], [string trim $god(prefix)]voice \[nick\], [string trim $god(prefix)]devoice \[nick\], [string trim $god(prefix)]kick &lt;nick&gt; \[reason\], [string trim $god(prefix)]ban &lt;nick&gt; \[reason\], [string trim $god(prefix)]unban &lt;nick ou host&gt;, [string trim $god(prefix)]topic &lt;texte&gt;, [string trim $god(prefix)]addop &lt;nick&gt; \[all\], [string trim $god(prefix)]addvoice &lt;nick&gt; \[all\], [string trim $god(prefix)]addauto-op &lt;nick&gt; \[all\], [string trim $god(prefix)]delop &lt;nick&gt; \[all\], [string trim $god(prefix)]delauto-op &lt;nick&gt; \[all\], [string trim $god(prefix)]delvoice &lt;nick&gt; \[all\], [string trim $god(prefix)]list \[#channel\]" } if {([matchattr $hand n] == 0) &amp;&amp; ([matchattr $hand o] == 1)} {  puthelp "NOTICE $nick :\002¤-¤-¤ OP ¤-¤-¤"  puthelp "NOTICE $nick :[string trim $god(prefix)]op \[nick\], [string trim $god(prefix)]deop \[nick\], [string trim $god(prefix)]voice \[nick\], [string trim $god(prefix)]devoice \[nick\], [string trim $god(prefix)]kick &lt;nick&gt; \[reason\], [string trim $god(prefix)]ban &lt;nick&gt; \[reason\], [string trim $god(prefix)]unban &lt;nick ou host&gt;, [string trim $god(prefix)]topic &lt;texte&gt;, [string trim $god(prefix)]addvoice &lt;nick&gt; \[all\], [string trim $god(prefix)]delvoice &lt;nick&gt; \[all\], [string trim $god(prefix)]list \[#channel\]" } if {[matchattr $hand |n $chan] == 1} {  puthelp "NOTICE $nick :\002¤-¤-¤ CHAN OWNER ¤-¤-¤"  puthelp "NOTICE $nick :[string trim $god(prefix)]op \[nick\], [string trim $god(prefix)]deop \[nick\], [string trim $god(prefix)]voice \[nick\], [string trim $god(prefix)]devoice \[nick\], [string trim $god(prefix)]kick &lt;nick&gt; \[reason\], [string trim $god(prefix)]ban &lt;nick&gt; \[reason\], [string trim $god(prefix)]unban &lt;nick ou host&gt;, [string trim $god(prefix)]topic &lt;texte&gt;, [string trim $god(prefix)]addmaster &lt;nick&gt;, [string trim $god(prefix)]addop &lt;nick&gt;, [string trim $god(prefix)]addvoice &lt;nick&gt;, [string trim $god(prefix)]addauto-op &lt;nick&gt;"  puthelp "NOTICE $nick :[string trim $god(prefix)]delmaster &lt;nick&gt;, [string trim $god(prefix)]delop &lt;nick&gt;, [string trim $god(prefix)]delauto-op &lt;nick&gt;, [string trim $god(prefix)]delvoice &lt;nick&gt;, [string trim $god(prefix)]deluser &lt;nick&gt;, [string trim $god(prefix)]cycle &lt;#channel&gt;, [string trim $god(prefix)]mode &lt;mode&gt;, [string trim $god(prefix)]list \[#channel\]" } if {([matchattr $hand |n $chan] == 0) &amp;&amp; ([matchattr $hand |m $chan] == 1)} {  puthelp "NOTICE $nick :\002¤-¤-¤ CHAN MASTER ¤-¤-¤"  puthelp "NOTICE $nick :[string trim $god(prefix)]op \[nick\], [string trim $god(prefix)]deop \[nick\], [string trim $god(prefix)]voice \[nick\], [string trim $god(prefix)]devoice \[nick\], [string trim $god(prefix)]kick &lt;nick&gt; \[reason\], [string trim $god(prefix)]ban &lt;nick&gt; \[reason\], [string trim $god(prefix)]unban &lt;nick ou host&gt;, [string trim $god(prefix)]topic &lt;texte&gt;, [string trim $god(prefix)]addop &lt;nick&gt;, [string trim $god(prefix)]addvoice &lt;nick&gt;, [string trim $god(prefix)]addauto-op &lt;nick&gt;, [string trim $god(prefix)]delop &lt;nick&gt;, [string trim $god(prefix)]delauto-op &lt;nick&gt;, [string trim $god(prefix)]delvoice &lt;nick&gt;, [string trim $god(prefix)]list \[#channel\]" } if {([matchattr $hand |n $chan] == 0) &amp;&amp; ([matchattr $hand |o $chan] == 1)} {  puthelp "NOTICE $nick :\002¤-¤-¤ CHAN OP ¤-¤-¤"  puthelp "NOTICE $nick :[string trim $god(prefix)]op \[nick\], [string trim $god(prefix)]deop \[nick\], [string trim $god(prefix)]voice \[nick\], [string trim $god(prefix)]devoice \[nick\], [string trim $god(prefix)]kick &lt;nick&gt; \[reason\], [string trim $god(prefix)]ban &lt;nick&gt; \[reason\], [string trim $god(prefix)]unban &lt;nick ou host&gt;, [string trim $god(prefix)]topic &lt;texte&gt;, [string trim $god(prefix)]addvoice &lt;nick&gt;, [string trim $god(prefix)]delvoice &lt;nick&gt;, [string trim $god(prefix)]list \[#channel\]" }}####################################            Fonctions            ##     recommendé de pas toucher   ## Risque: faire planté le eggdrop ####################################### Identification, Shutup, Auto-op, Désidentification,### Unshutup, Détecteur de clone, Message de bienvenue.# Identification #bind msg | id msg_identproc msg_ident {nick uhost hand text} { global botnick if {[matchattr $hand Q] == 1} {  puthelp "NOTICE $nick :Tu es deja identifier."  return 0 } if {[passwdok $hand ""] == 1} {  puthelp "NOTICE $nick :Tu n'as pas de password. Fait /msg $botnick pass &lt;password_voulu&gt;"   return 0 } if {[passwdok $hand [lindex $text 0]] == 1} {  chattr $hand +Q  putcmdlog "#$hand# id..."  puthelp "NOTICE $nick :Vous êtes maintenant identifier, pour vous désidentifier: /msg $botnick unident &lt;password&gt;" } if {[passwdok $hand [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :Votre identification a fouarrer :P \002Password incorrect\002" }}# Désidentification #bind sign | * sign_deloginproc sign_delogin {nick uhost hand chan text} { if {[matchattr $hand Q] == 1} {  chattr $hand -Q } if {[matchattr $hand Q] == 0} {  return 0 }}bind msg | unident msg_unidentproc msg_unident {nick uhost hand text} { global botnick if {$text == ""} {  puthelp "NOTICE $nick :\002Quick HELP: /msg $botnick unident &lt;password&gt;"  return 0 } if {[matchattr $hand Q] == 0} {  puthelp "NOTICE $nick :Tu ne t'es jamais identifier."  return 0 } if {[passwdok $hand $text] == 1} {  chattr $hand -Q  puthelp "NOTICE $nick :Tu n'es plus identifier." } if {[passwdok $hand $text] == 0} {  puthelp "NOTICE $nick :Votre désidentification a fouarrer :P \002Password incorrect\002" }}# Shutup #bind msg | shutup msg_shutupproc msg_shutup {nick uhost hand text} { global botnick if {[matchattr $hand S] == 1} {  puthelp "NOTICE $nick :Le mode shutup est deja activer."  return 0 } if {[lindex $text 0] == ""} {  puthelp "NOTICE $nick :\002Quick HELP: /msg $botnick shutup &lt;password&gt;" } if {[passwdok $hand ""] == 1} {  puthelp "NOTICE $nick :Tu n'as pas de password. Fait /msg $botnick pass &lt;password_voulu&gt;"   return 0 } if {[passwdok $hand [lindex $text 0]] == 1} {  chattr $hand +S  putcmdlog "#$hand# shutup..."  puthelp "NOTICE $nick :Le mode shutup est maintenant activer. Pour le désactiver: /msg $botnick unshutup &lt;password&gt;" } if {[passwdok $hand [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :Le mode shutup n'est pas activer. \002Password incorrect\002" }}# Unshutup #bind msg | unshutup msg_unshutupproc msg_unshutup {nick uhost hand text} { global botnick if {[matchattr $hand S] == 0} {  puthelp "NOTICE $nick :Le mode shutup n'est pas activer."  return 0 } if {[lindex $text 0] == ""} {  puthelp "NOTICE $nick :\002Quick HELP: /msg $botnick unshutup &lt;password&gt;" } if {[passwdok $hand ""] == 1} {  puthelp "NOTICE $nick :Tu n'as pas de password. Fait /msg $botnick pass &lt;password_voulu&gt;"   return 0 } if {[passwdok $hand [lindex $text 0]] == 1} {  chattr $hand -S  putcmdlog "#$hand# unshutup..."  puthelp "NOTICE $nick :Le mode shutup est maintenant desactiver. Pour l'activer: /msg $botnick shutup &lt;password&gt;" } if {[passwdok $hand [lindex $text 0]] == 0} {  puthelp "NOTICE $nick :Le mode shutup n'est pas desactiver. \002Password incorrect\002" }}# Auto-op #bind join a|a * pubcommand_auto-opproc pubcommand_auto-op {nick uhost hand chan} { putserv "MODE $chan +o $nick"}# Message de bienvenue #bind join - * join_welcomeproc join_welcome {nick uhost hand chan} { global botnick owner god if {$god(welcome) == "OUI"} {  if {$chan == $god(service.chan)} {   if {$god(service) == "OUI"} {    if {$god(service.welcome) == "OUI"} {     puthelp "NOTICE $nick :$god(service.welcome.text)"     return 0    }   }  }  if {$nick != $botnick} {   putserv "NOTICE $nick :$god(welcome.text)"  } }}# Détecteur de clone #bind join - * join_cloneproc join_clone {nick uhost hand chan} { global clone_chans botnick owner god if {$god(clonedetect) == "OUI"} {  if {(([lsearch -exact [string tolower $chan] [string tolower $chan]] != -1) || ($chan == "*")) &amp;&amp; ($nick != $botnick) &amp;&amp; ($nick != $owner)} {   foreach i [chanlist $chan] {    set clone_temp [lindex [split [getchanhost $i $chan] @] 1]    if {($clone_temp == [lindex [split $uhost @] 1]) &amp;&amp; ($i != $nick) &amp;&amp; ($i != $botnick) &amp;&amp; ($i != $owner)} {    putserv "PRIVMSG $chan :Hum... ya des clones: $nick &amp; $i (*!*@$clone_temp)"     return 1    }   }  } }}# Mentionner les op, deop #bind mode -o "% -o" got_deopedproc got_deoped {nick uhost hand chan -o victim} {global botnick god if {$god(service) == "OUI"} {  if {$god(service.opdeop) == "OUI"} {   if {$chan==$god(service.chan)} {    return 0   }   if {$victim==$botnick} {    putserv "PRIVMSG $god(service.chan) :ALERTE: $nick ($uhost) m'a deop de $chan"    flushmode $chan    putserv "PRIVMSG $chan :ALERTE: $nick ($uhost) m'a deop de $chan, pour pouvoir me garder, vous devez me op maintenant, ce message est envoyer sur $god(service.chan), et quelqu'un va venir, et si je ne suis pas op, votre channel sera enlever de ma liste..."     return 0   }  } }}bind mode +o "% +o" got_opedproc got_oped {nick uhost hand chan +o victim} {global botnick god if {$god(service) == "OUI"} {  if {$god(service.opdeop) == "OUI"} {   if {$victim==$botnick} {    putserv "PRIVMSG $chan :Merci $nick. Je suis maintenant fonctionnel."    return 0   }  } }}###################################### Fin #######################################putlog "GodControl v1.0 by oUr0sTucK LOADED Released: 13/05/2001"putchan #loving"Rotation  des fichiers de configurations completer Pitchat:-)"</code></pre></div>thank for any help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Mon May 05, 2003 12:21 am</p><hr />
]]></content>
	</entry>
	</feed>
