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

	<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>2015-05-22T13:47:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[vigilant]]></name></author>
		<updated>2015-05-22T13:47:10-04:00</updated>

		<published>2015-05-22T13:47:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104141#p104141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104141#p104141"/>
		<title type="html"><![CDATA[Chattr MSG Command - not working properly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104141#p104141"><![CDATA[
Hello all,<br><br>I have recoded the command, and it works now. I am using the onchan command. It works fine. <br>If you want to still reply to the above code, and tell me how to make it work that's good, otherwise it's okay.<br><br>Thanks to spike^^ for his help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7195">vigilant</a> — Fri May 22, 2015 1:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[vigilant]]></name></author>
		<updated>2015-05-21T17:41:33-04:00</updated>

		<published>2015-05-21T17:41:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104133#p104133</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104133#p104133"/>
		<title type="html"><![CDATA[Chattr MSG Command - not working properly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104133#p104133"><![CDATA[
Okay so I have modified my script a bit with the help of Mr Spike^^.<blockquote class="uncited"><div>[10:32:15 pm] -&gt; *leet* chattr who<br>[10:32:17 pm] -leet- No channel<br>[10:32:19 pm] -leet- Ljubljana.SI.EU.irchaven.org 401 leet who :No such nick<br>[10:32:21 pm] -leet- Ljubljana.SI.EU.irchaven.org 318 leet who :End of /WHOIS list.<br>[10:32:23 pm] -leet- User is offline<br>[10:32:25 pm] -leet- Changed nonglobal flags for who from * to * in <br>[10:37:55 pm] -&gt; *leet* chattr<br>[10:37:57 pm] -leet- No nickname<br>[10:38:00 pm] -&gt; *leet* chattr vigilant<br>[10:38:07 pm] -&gt; *leet* chattr vigilant #woot<br>[10:38:11 pm] -leet- Ljubljana.SI.EU.irchaven.org 318 leet leet :End of /WHOIS list.<br>[10:38:13 pm] -leet- Changed nonglobal flags for vigilant from fjlmnoptx to * in <br>[10:38:15 pm] -leet- No flags<br>[10:38:17 pm] -leet- Ljubljana.SI.EU.irchaven.org 318 leet vigilant :End of /WHOIS list.<br>[10:38:19 pm] -leet- Changed nonglobal flags for vigilant from fjlmnoptx|almno to fjlmnoptx|almno in #woot<br>[10:38:27 pm] -&gt; *leet* chattr vigilant #woot +f<br>[10:38:29 pm] -leet- Ljubljana.SI.EU.irchaven.org 318 leet vigilant :End of /WHOIS list.<br>[10:38:31 pm] -leet- Changed nonglobal flags for vigilant from fjlmnoptx|almno to fjlmnoptx|aflmno in #woot</div></blockquote>There are some errors still<br>As seen above<br> It changes the flags for people who are offline as well<br>It lists flags for people when there are no flags specified<br>It does not say, you did not enter a channel, after typing /msg botnick chattr vigilant<br><div class="codebox"><p>Code: </p><pre><code>bind msg - chattr chattrFirstProcproc chattrFirstProc { n u h t } {# using [lindex $t 0] for non globalset nick [lindex $t 0]set channel [lindex $t 1]set flags [lindex $t 2]# some global variablesset ::chattrUser $nset ::chattrWho [lindex $t 0]set ::chattrNonGlobalChannel [lindex $t 1]set ::chattrOldFlags [chattr [nick2hand [lindex $t 0]] $channel]set ::chattrNewFlags [chattr [nick2hand [lindex $t 0]] -|[lindex $t 2] $channel]bind raw - 318 chattrSecondProcbind raw - 401 chattrSecondProcunset -nocomplain ::chattrOfflineputquick "WHOIS $nick"# put input verification in the first procif {[lindex $t 0] == "-global" &amp;&amp; [lindex $t 1] == ""} {putnotc $n "No nickname when -global is provided"return 1}if {[lindex $t 0] == "-global" &amp;&amp; [lindex $t 2] == ""} {putnotc $n "No flags provided"return 1}if { $nick == "" } {putnotc $n "No nickname"return 1}if { $channel == "" } {putnotc $n "No channel"return 1}if { $flags == "" } {putnotc $n "No flags"return 1}}proc chattrSecondProc { from key text } {#  receiving a 401 reply will probably require setting another global variable so when we get the 318, we know how to reply as online or offlineputnotc $::chattrUser "$from $key $text"if {$key == "401"} {set ::chattrOffline "1"return}unbind raw - "318" chattrSecondProcunbind raw - "401" chattrSecondProcif [info exists ::chattrOffline] {putnotc $::chattrUser "User is offline"}# [07:40:13 pm] &lt;SpiKe^^&gt; then we add the user and/or flags to the user, or what ever we want to do if the user is online as we just proved or disprovedputnotc $::chattrUser "Changed nonglobal flags for $::chattrWho from $::chattrOldFlags to $::chattrNewFlags in $::chattrNonGlobalChannel"unset -nocomplain ::chattrOffline}</code></pre></div>This is an unfinished script.<br>It should do more input verification.<br>I hope you all can help with that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7195">vigilant</a> — Thu May 21, 2015 5:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
