<?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/8932" />

	<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>2005-01-06T20:05:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-01-06T20:05:24-04:00</updated>

		<published>2005-01-06T20:05:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45095#p45095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45095#p45095"/>
		<title type="html"><![CDATA[windop.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45095#p45095"><![CDATA[
as far as I can recall (have to take a look at the source to confirm this), you get "*" as uhost on IRC event originating from the server (source_p in ircd code is server's name)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Jan 06, 2005 8:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Damnation85]]></name></author>
		<updated>2005-01-06T19:11:15-04:00</updated>

		<published>2005-01-06T19:11:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45088#p45088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45088#p45088"/>
		<title type="html"><![CDATA[windop.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45088#p45088"><![CDATA[
i've given up on basing on somone elses code i am going to take a shot at coding it myself i have been looking through source looking at what people do and i have seen several of these <br><br>if { $host == "*" } { return 0 }<br><br>what is happening here? <br>i can see that if the host of the user is * return<br><br>but when would a host be * at any time.<br>is this peice of code necessary ? <br><br>thanx for your help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5811">Damnation85</a> — Thu Jan 06, 2005 7:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Damnation85]]></name></author>
		<updated>2005-01-06T12:37:47-04:00</updated>

		<published>2005-01-06T12:37:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45066#p45066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45066#p45066"/>
		<title type="html"><![CDATA[windop.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45066#p45066"><![CDATA[
unfortunatly i don't remember but nodesynch =  - and bitch<br>protectfriends +ops<br>dontkickops as well is a + <br><br>but it hasn't done it in a few days so maybe i changed a setting and fixed that.<br><br>i have been tracking down the login bug and i am a lil confused here <br><br>for example lets say my login should be<br><br>Damnation x<br><br>i type that in irc like so<br>/msg svbot login Damnation x<br><br>and i get :<br>-SvBot- 0<br>-SvBot- 0<br>-SvBot- 1<br><br>i should get :<br><br>"AUTHENTICATION SUCCESSFUL as Damnation."<br><br>no the user/pass part of the code is : <br><br>set user [join [lindex [split $arg] 0]]<br>set pass [join [lindex [split $arg] 1]]<br><br>the lines i have printing the -SvBot- parts are<br>puthelp "NOTICE $nick :[passwdok $user ""]"<br>puthelp "NOTICE $nick :[passwdok $user "-"]"<br>puthelp "NOTICE $nick :[passwdok $user $pass]"<br><br>i don't understand whats up the docs say :<br><br>  passwdok &lt;handle&gt; &lt;pass&gt;<br>    Description: checks the password given against the user's password.<br>      Check against the password "" (a blank string) or "-" to find out<br>      if a user has no password set.<br>    Returns: 1 if the password matches for that user; 0 otherwise<br>    Module: core<br><br>so by rights <br>if {[passwdok $user $pass]} {<br><br>should pass, but it isn't nor is <br>if {![passwdok $user $pass]} {<br><br>this has me very confused as it passes <br>if {![passwdok $user ""]} {<br><br>any help or information that can be given will be so gratefully taken<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5811">Damnation85</a> — Thu Jan 06, 2005 12:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-01-06T10:56:34-04:00</updated>

		<published>2005-01-06T10:56:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45061#p45061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45061#p45061"/>
		<title type="html"><![CDATA[windop.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45061#p45061"><![CDATA[
Is the kick message "Abusing Desynch" ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Jan 06, 2005 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Damnation85]]></name></author>
		<updated>2005-01-05T11:51:13-04:00</updated>

		<published>2005-01-05T11:51:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44970#p44970</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44970#p44970"/>
		<title type="html"><![CDATA[windop.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44970#p44970"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![passwdok $user ""]} {   if {![passwdok $user $pass]} {    puthelp "NOTICE $nick :[Svbot:lang $hand 19 "$user"]"    setuser $user xtra Svbot:auth 0    delhost $user "[getuser $user xtra Svbot:authnick]!*[Svbot:notild [getuser $user xtra Svbot:authhost]]"    setuser $user xtra Svbot:authhost "*"    setuser $user xtra Svbot:authnick ""    delhost $user "$nick !*[Svbot:notild $user]"   if {[passwdok $user $pass]} {        puthelp "NOTICE $nick : inside the login if"    puthelp "NOTICE $nick :[Svbot:lang $hand 21 "$user"]"    setuser $user hosts "$nick!*[Svbot:notild $user]"    setuser $user xtra Svbot:auth 1    delhost $user "[getuser $user xtra Svbot:authnick]!*[Svbot:notild [getuser $user xtra Svbot:authhost]]"    setuser $user xtra Svbot:authhost $host    setuser $user xtra Svbot:authnick $nick             foreach chan [channels] {      switch -- [getuser $user xtra Svbot:$chan.automode] {       "op" { pushmode $chan +o $nick }       "voice" { pushmode $chan +v $nick }          }        }       }    }  }</code></pre></div>well i have no idea why but after a nice lil reboot of the bot all of a sudden that code above failed now before it was working its apart of the login proc <br><br>it gets inside the first if.<br>i did a puthelp "NOTICE $nick :[passwdok $user $pass]" and it returned 1 <br>i don't know whats up but the user and pass are correct.<br><br>a friend who also uses a bot said that hes had this problem and u have to remove the user file so i did that and started again (good thing it was only me and 1 other in it) <br>but the problem isn't sorted if anyone could shed some light on this problem i'd be rather thankful.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5811">Damnation85</a> — Wed Jan 05, 2005 11:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Damnation85]]></name></author>
		<updated>2005-01-05T09:13:34-04:00</updated>

		<published>2005-01-05T09:13:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44961#p44961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44961#p44961"/>
		<title type="html"><![CDATA[windop.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44961#p44961"><![CDATA[
well i haven't had it today since i changed some channel settings i proberly had +bitch on or somthing not sure, but when chanserv oped somone the bot tried to deop/kick or somthing. i would see the message from the services saying that they cannot be deoped or kicked in the dcc chat with the bot. i just thought if i could somehow scan the chan if chanserv with host <a href="mailto:services@darkmyst.org">services@darkmyst.org</a> exists in channel ignore that person.<br>so in users on channel/ops etc he would be ignored. <br>it gets constantly ignored via the bot from floods onjoin (ctcp) and when i had a anti flood script on the bot it'd join the channel getops then ban chanserv well try it'd place the ban but it is impossible for the service to be removed without me asking it to be removed. <br><br> if {[strlwr $chan] == "*"} {<br>set chan "owner"<br>} <br><br>so this isn't needed at all i knew what the string lowwer bit did and the compair i just didn't understand why it would try to match a channel to * and then set it to "owner"<br><br>what would help if the channel is set to owner? <br><br>i think i'll email the author about that one might shed some light, was just wondering if it was a eggdrop thing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5811">Damnation85</a> — Wed Jan 05, 2005 9:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-05T08:55:32-04:00</updated>

		<published>2005-01-05T08:55:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44958#p44958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44958#p44958"/>
		<title type="html"><![CDATA[windop.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44958#p44958"><![CDATA[
<blockquote class="uncited"><div>    if {[strlwr $chan] == "*"} {<br>        set chan "owner"<br>    }</div></blockquote>This is basically comparing to values, if they are equal or not. Now $chan can be a channel named, working in a proc, on where the proc is triggered.<br><br>Say your bot is on channel #usa. This script triggers, there and $chan is defined as the channel where this triggers so $chan == #usa.<br><br>Now the bot can read #usa, as #Usa, #USA, #uSa, #usA or whatever. So what, 'strlwr' does, it converts all the alphabets to lower case,<br><br>So strlwr $anychar will give you a value of all alphabets into lower chars.<br>So strlwr $chan = #usa.<br><br>Now we have<br><br> if {#usa == "*"} {<br>   set chan "owner"<br>}<br><br>#usa is not equal to "*"; #usa != "*"<br><br>So, then it will not execute. But however, if it $chan equals to "*" then it will run the if statement and set $chan to be a value "owner".<br><br>I don't see here why you are using string to lower, since if $chan contains "*", there is no need to convert it into lower case since it is not an alphabet.<br><blockquote class="uncited"><div>also i have added the networks services ChanServ to my bot as a friend and a op but it shows that its never been seen. and it still tries to kick it although i have said don't kick ops etc etc.<br><br>(SvBot) ChanServ no 0 fo never (nowhere )<br>(SvBot) HOSTS: <a href="mailto:services@darkmyst.org">services@darkmyst.org</a><br><br>is there a way for me to code my tcls so that if the host is <a href="mailto:services@darkmyst.org">services@darkmyst.org</a> or nick is chanserv (u can't change your nick to that) don't kick,ban, msg etc etc basically completely ignore that user.</div></blockquote>First we have to know why is ChanServ being kicked by the bot? What kick message do you get?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jan 05, 2005 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Damnation85]]></name></author>
		<updated>2005-01-05T06:38:31-04:00</updated>

		<published>2005-01-05T06:38:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44950#p44950</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44950#p44950"/>
		<title type="html"><![CDATA[windop.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44950#p44950"><![CDATA[
i have been looking through the source of windop.tcl and modifing it to work how i want. i have contacted the author of the script and he has given me loads of help. unfortunatly he has become busy it seems so could anyone explain: <br><div class="codebox"><p>Code: </p><pre><code> if {[strlwr $chan] == "*"} {  set chan "owner" }</code></pre></div>what does this do ?<br><br>bind bot b EXP dop:botexp<br>bind bot b EXPR dop:botexpr<br><br><br>bind bot b DOPCHANSR dop:dopchans<br>bind bot b DOPCHANS dop:dopchansr<br><br>bind sign - * dop:dauthq<br>bind raw - 001 dop:dauthall<br>bind mode - * dop:mode<br>bind nick - * dop:chnick<br>bind time - "30 * * * *" dop:updatetopics<br>bind time - "00 * * * *" dop:updatetopics<br><br>these to i haven't seen these either<br><br>bind msg &amp; pub and join and init_server i have seen and they are easy to fiqure out.<br><br><br>also i have added the networks services ChanServ to my bot as a friend and a op but it shows that its never been seen. and it still tries to kick it although i have said don't kick ops etc etc.<br><br>(SvBot) ChanServ no 0 fo never (nowhere )<br>(SvBot) HOSTS: <a href="mailto:services@darkmyst.org">services@darkmyst.org</a><br><br>is there a way for me to code my tcls so that if the host is <a href="mailto:services@darkmyst.org">services@darkmyst.org</a> or nick is chanserv (u can't change your nick to that) don't kick,ban, msg etc etc basically completely ignore that user.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5811">Damnation85</a> — Wed Jan 05, 2005 6:38 am</p><hr />
]]></content>
	</entry>
	</feed>
