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

	<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-09-07T18:39:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-09-07T18:39:21-04:00</updated>

		<published>2003-09-07T18:39:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26718#p26718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26718#p26718"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26718#p26718"><![CDATA[
I used that as an example to show what my hosts look like,<br>except they are not egghelp.org, I use k@in,<br>so it would be 'kain!k@in' and 'kain*!*k@in'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Sun Sep 07, 2003 6:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-07T15:41:52-04:00</updated>

		<published>2003-09-07T15:41:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26710#p26710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26710#p26710"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26710#p26710"><![CDATA[
You do have the 'kain!<a href="mailto:kain@egghelp.org">kain@egghelp.org</a>' host on IRC?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Sep 07, 2003 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-09-07T13:36:14-04:00</updated>

		<published>2003-09-07T13:36:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26701#p26701</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26701#p26701"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26701#p26701"><![CDATA[
I've tried it myself, for example 'kain!<a href="mailto:kain@egghelp.org">kain@egghelp.org</a>'<br>or even 'kain*!*<a href="mailto:kain@egghelp.org">kain@egghelp.org</a>'<br>If I change my nick to 'kain-' rather than 'kain',<br>it gives me the same error, yet works on 'kain'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Sun Sep 07, 2003 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-07T12:17:08-04:00</updated>

		<published>2003-09-07T12:17:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26690#p26690</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26690#p26690"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26690#p26690"><![CDATA[
I mean if he dose have an hostmask like <em class="text-italics">Nick!*@*.something.org</em> or something similar with <em class="text-italics">Nick!</em> in it? Where "Nick" is the actual nick of the person.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Sep 07, 2003 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-09-07T12:06:27-04:00</updated>

		<published>2003-09-07T12:06:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26689#p26689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26689#p26689"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26689#p26689"><![CDATA[
no, thats not it, just lists the nick as normal no extra characters,<br>this only happens when they lose their nick and add a - at the end<br>or something like that, if their handle had the - in it wouldnt be a problem<br>but i dont want to go round changing peoples handles every 5 minutes<br>or have to write something that will, just to acomodate this code.<br>apart from that i cant think :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Sun Sep 07, 2003 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-07T08:58:20-04:00</updated>

		<published>2003-09-07T08:58:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26686#p26686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26686#p26686"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26686#p26686"><![CDATA[
Then it might be the way he places the masks for the users. Do a whois on a user with a "special" char that is not working and see if it's added with nick also.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Sep 07, 2003 8:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-09-07T08:18:51-04:00</updated>

		<published>2003-09-07T08:18:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26683#p26683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26683#p26683"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26683#p26683"><![CDATA[
Just tried that, still comes back with the same problem though,<br>I also added the 'set text [split $text] bellow, and that didn't work either.<br><div class="codebox"><p>Code: </p><pre><code>proc pub:add { nick address handle chan text } {global lbn hub home privset text [split $text]if {[matchattr $handle L]} {if {[ishub $chan] == 1 } {adduserproc $nick $address $handle $chan $text}}}</code></pre></div>Don't know if looking at that might help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Sun Sep 07, 2003 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-09-07T07:23:24-04:00</updated>

		<published>2003-09-07T07:23:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26682#p26682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26682#p26682"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26682#p26682"><![CDATA[
you'd have to change the [lindex $text] everywhere. but caesar's way is easier. just put a "set text [split $text]" at the beginning of your proc and all should be fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Sun Sep 07, 2003 7:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-09-06T15:01:41-04:00</updated>

		<published>2003-09-06T15:01:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26646#p26646</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26646#p26646"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26646#p26646"><![CDATA[
Thanks for the response both, nice to see caesar is still spamming around <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>arcane I've tried what you said and it still spits out the same error<blockquote class="uncited"><div>eg;<br>&lt;kain&gt; add op user-<br>&lt;bot&gt; user- is not on the channel or I can't recognise that user.<br>but if I;<br>&lt;kain&gt; add op user<br>&lt;bot&gt; user is now a channel op for #channel!</div></blockquote>for example, the 'user-'s handle is 'user' but when trying it with a -<br>in the nick it doesn't work, but 'user'/handle does.<br>its also not sending out an invite unless the user drops the special<br>character from their nick, but the invite thing is something else altogether.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Sat Sep 06, 2003 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-06T14:19:10-04:00</updated>

		<published>2003-09-06T14:19:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26641#p26641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26641#p26641"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26641#p26641"><![CDATA[
or even<div class="codebox"><p>Code: </p><pre><code>set text [split $text]</code></pre></div>and voila, no need to change anything <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=187">caesar</a> — Sat Sep 06, 2003 2:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-09-06T13:39:38-04:00</updated>

		<published>2003-09-06T13:39:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26635#p26635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26635#p26635"/>
		<title type="html"><![CDATA[Re: Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26635#p26635"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set type [string tolower [lindex $text 0]]set usernick [lindex $text 1]</code></pre></div>you are using list commands on strings. use this instead:<div class="codebox"><p>Code: </p><pre><code>set type [string tolower [lindex [split $text] 0]]set usernick [lindex [split $text] 1]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Sat Sep 06, 2003 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-09-06T09:16:55-04:00</updated>

		<published>2003-09-06T09:16:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26621#p26621</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26621#p26621"/>
		<title type="html"><![CDATA[Confused (special character problem)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26621#p26621"><![CDATA[
The code below adds peoples channel flags by public command,<br>but if someone has a special character in their nick<br>it doesn't always recognise them, I can't really see whats wrong<br>here, but maybe I've been looking at it for too long.<br><div class="codebox"><p>Code: </p><pre><code>proc adduserproc { nick address handle chan text } {global priv lbn hub home group privateset ichan [string tolower $chan]set pri private($ichan)set type [string tolower [lindex $text 0]]set usernick [lindex $text 1]set user [nick2hand $usernick]if {[onchan $usernick $chan]} {if {[nick2hand [lindex $text 1]] == 0 } {puthelp "PRIVMSG $chan :$usernick is not on $chan. or I can't recognise that user."return 0}if {[validuser [nick2hand $user]] == 0 } {puthelp "PRIVMSG $chan :$usernick is not on $chan. or I can't recognise that user."return 0}if {[matchattr $user L] == 0 } {puthelp "PRIVMSG $chan :I know $usernick, but $usernick isn't authed."return 0}}if {![onchan $usernick $chan]} {set user $usernick}### Channelif {$type == "owner" &amp;&amp; [matchattr $handle m]} {chattr $user |+nmofgv $chanputserv "MODE $chan +v $usernick"puthelp "PRIVMSG $chan :$usernick is now a channel $type for $chan!"if {[info exists $pri] &amp;&amp; [channel get $chan private]} {if {$private(${ichan}) != "" } {putserv "INVITE $usernick :$private(${ichan})"}}}if {$type == "master" &amp;&amp; [matchattr $handle m|n $chan]} {chattr $user |+mofgv-n $chanputserv "MODE $chan +v $usernick"puthelp "PRIVMSG $chan :$usernick is now a channel $type for $chan!"if {[info exists $pri] &amp;&amp; [channel get $chan private]} {if {$private(${ichan}) != "" } {putserv "INVITE $usernick :$private(${ichan})"}}}if {$type == "op"} {chattr $user |+ofgv-nm $chanputserv "MODE $chan +v $usernick"puthelp "PRIVMSG $chan :$usernick is now a channel $type for $chan!"if {[info exists $pri] &amp;&amp; [channel get $chan private]} {if {$private(${ichan}) != "" } {putserv "INVITE $usernick :$private(${ichan})"}}}if {$type == "voice"} {chattr $user |+fv-nmo $chanputserv "MODE $chan +v $usernick "puthelp "PRIVMSG $chan :$usernick is now a channel $type for $chan!"}</code></pre></div>The problem is probably in the top part of the code, rather than<br>where the flags are actually added and invites made.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Sat Sep 06, 2003 9:16 am</p><hr />
]]></content>
	</entry>
	</feed>
