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

	<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>2004-01-29T22:24:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-01-29T22:24:02-04:00</updated>

		<published>2004-01-29T22:24:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33080#p33080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33080#p33080"/>
		<title type="html"><![CDATA[calling dcc proc from msg proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33080#p33080"><![CDATA[
Are you sure this is what you want?<div class="codebox"><p>Code: </p><pre><code>set pass [lindex $nick 0] </code></pre></div>Setting the pass as the nick itself?<br><br>(Also, as mentioned a million times before in this forum and various other resources on the net concerning TCL, you MUST convert a string to a list when performing list operations, otherwise you leave yourself open for nastiness you don't want.  Use [split $var] to convert to list before performing such functions as "lindex" on them.)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 29, 2004 10:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[soul]]></name></author>
		<updated>2004-01-29T19:02:33-04:00</updated>

		<published>2004-01-29T19:02:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33075#p33075</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33075#p33075"/>
		<title type="html"><![CDATA[calling dcc proc from msg proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33075#p33075"><![CDATA[
set login "L"<br>set b "[-] "<br><br>## delete cookie<br><br>bind part L * userinfopart<br>proc userinfopart { nick uhost hand chan msg } {<br>global login<br>if {[matchattr $hand L $chan]} {<br>chattr $hand -$login<br>dccbroadcast "$b$arg fez logout (part)"<br>}<br>return 0 }<br><br>bind sign L * userinfoquit<br>proc userinfoquit {nick uhost hand chan reason} {<br>if {[matchattr $hand L $chan]} {<br>chattr $hand -$login<br>dccbroadcast "$b$arg fez logout (sign)"<br>}<br>return 0 }<br>bind kick  L * userinfokick<br>proc userinfokick {nick uhost hand chan target reason} {<br>if {[matchattr $hand L $chan]} {<br>chattr $hand -$login<br>dccbroadcast "$b$arg fez logout (kick)"<br>}<br>return 0 }<br>bind nick  L * userinfonick<br>proc userinfokick {nick uhost hand chan newnick} {<br>if {[matchattr $hand L $chan]} {<br>chattr $hand -$login<br>dccbroadcast "$b$arg fez logout (nick change)"<br>}<br>return 0 }<br>putlog "userinfo-cookie.tcl"<br><br>## auth proc<br><br>bind msg U identificar msg:identificar<br>proc msg:identificar {nick uhost hand text} {<br>global login b<br>set pass [lindex $nick 0]<br>if {[passwdok $nick $pass]} { <br>putserv "notice $nick :identified!"<br>dcc:identificar { hand } ; return<br>} else {<br>putserv "notice $nick :not identified!" ; return<br>}<br>}<br><br>bind dcc b identificar dcc:identificar<br>proc dcc:identificar { hand } {<br>global login b<br>chattr $hand +$login<br>save<br>dccbroadcast "$b$hand fez login (pass auth)"<br>}<br>return }<br><br>###<br><br>i get a reply : "not identified!" when the pass is OK. why? did i confused $nick with $hand ?<br>am i calling right the bind dcc proc from the msg bind ? or setting calling non used vars inside bind msg?<br><br>regards,<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3075">soul</a> — Thu Jan 29, 2004 7:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
