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

	<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-06-22T18:07:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[tessa1]]></name></author>
		<updated>2005-06-22T18:07:45-04:00</updated>

		<published>2005-06-22T18:07:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51249#p51249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51249#p51249"/>
		<title type="html"><![CDATA[Help with !samode and Channelcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51249#p51249"><![CDATA[
I'm using the following and it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>set gogo(operchan) "#operchan"set gogo(noav) 0set gogo(botname) "BigBrother"bind pub -|- !samode    zop:samodeproc zop:samode {nick host hand chan arg} {  global gogo  if {![string equal $chan $gogo(operchan)]} {   return 0  }  if {$gogo(noav)} {   putquick "NOTICE $nick :Not available! Sorry I'm busy!"   return 0  }  set samodechan [lindex [split $arg] 0]  if {$samodechan == ""} {   putquick "NOTICE $nick :No channel! Syntax: !samode &lt;#Channel&gt; &lt;+/-chanmode&gt;"   return 0  }  set chanmode [lrange [split $arg] 1 end]  if {$chanmode == ""} {   putquick "NOTICE $nick :No mode! Syntax: !samode &lt;#Channel&gt; &lt;+/-chanmode&gt;"   return 0  }   bind RAW -|- 322         go:check   bind RAW -|- 401         go:msgcheck   set gogo(noav) 1      set gogo(samodechan) "$samodechan"   set gogo(chanmode) "$chanmode"   putquick "LIST $gogo(samodechan)"   putquick "PRIVMSG $gogo(samodechan) :Some.Network.org sets mode: $gogo(chanmode)"  }proc go:check {from keyword arg} {global gogo botnick  if {(![string match "$gogo(samodechan)" $arg])} {    putquick "PRIVMSG $gogo(operchan) :Please wait • • • •"    putquick "SAMODE $gogo(samodechan) $gogo(chanmode)"    putquick "PRIVMSG $gogo(operchan) :Done!"    set gogo(noav) 0    return 1   }}proc go:msgcheck {from keyword arg} {global gogo botnick  if {(![string match "No such nick/channel)" $arg])} {    putquick "PRIVMSG $gogo(operchan) :Please wait • • • •"    putquick "PRIVMSG $gogo(operchan) :There's no chan with this name on the network!"    set gogo(noav) 0    return 1   }}</code></pre></div>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6110">tessa1</a> — Wed Jun 22, 2005 6:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tessa1]]></name></author>
		<updated>2005-06-22T17:26:30-04:00</updated>

		<published>2005-06-22T17:26:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51246#p51246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51246#p51246"/>
		<title type="html"><![CDATA[Help with !samode and Channelcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51246#p51246"><![CDATA[
when i type <br><br>/msg #invalidchannel blah<br><br>then is a reply 401<br><blockquote class="uncited"><div>&lt;- :Some.Network.org 401 teSSa #invalidchannel :No such nick/channel</div></blockquote>i should bind the raw 401 with a channel message...that should work..i think<br><br>or do you have a better idea?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6110">tessa1</a> — Wed Jun 22, 2005 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tessa1]]></name></author>
		<updated>2005-06-22T16:15:04-04:00</updated>

		<published>2005-06-22T16:15:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51244#p51244</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51244#p51244"/>
		<title type="html"><![CDATA[Help with !samode and Channelcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51244#p51244"><![CDATA[
i found this in my debug window<br><blockquote class="uncited"><div>-&gt; Some.Network.org LIST #jghguhrtgl<br>&lt;- :Some.Network.org 321 teSSa Channel :Users  Name<br>&lt;- :Some.Network.org 323 teSSa :End of /LIST</div></blockquote> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><br><br>I'm using Unreal 3.2.3<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6110">tessa1</a> — Wed Jun 22, 2005 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-22T16:08:38-04:00</updated>

		<published>2005-06-22T16:08:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51242#p51242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51242#p51242"/>
		<title type="html"><![CDATA[Help with !samode and Channelcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51242#p51242"><![CDATA[
on the contrary, there is 401 reply on LIST with non-existing channel (unless you use broken or non-RFC1459-conforming ircd)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Jun 22, 2005 4:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tessa1]]></name></author>
		<updated>2005-06-22T15:48:36-04:00</updated>

		<published>2005-06-22T15:48:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51240#p51240</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51240#p51240"/>
		<title type="html"><![CDATA[Help with !samode and Channelcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51240#p51240"><![CDATA[
uhhmmm.... theres no raw 401 reply on /samode or on /list an invalid chan<br><br>do you have an idea how to integrate raw 401 ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6110">tessa1</a> — Wed Jun 22, 2005 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-22T15:38:44-04:00</updated>

		<published>2005-06-22T15:38:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51239#p51239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51239#p51239"/>
		<title type="html"><![CDATA[Help with !samode and Channelcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51239#p51239"><![CDATA[
you need to also bind raw to 401 (No such nick/channel)<br><br>you can't catch "no such channel" in 322<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Jun 22, 2005 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tessa1]]></name></author>
		<updated>2005-06-22T13:58:47-04:00</updated>

		<published>2005-06-22T13:58:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51233#p51233</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51233#p51233"/>
		<title type="html"><![CDATA[Help with !samode and Channelcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51233#p51233"><![CDATA[
Hi,<br><br>my egg iss ircop &gt; mode = +aoA<br><br>there's a problem to check, if a channel exits on the network.<br><br>Script:<div class="codebox"><p>Code: </p><pre><code>set gogo(operchan) "#operchan"set gogo(noav) 0set gogo(botname) "BigBrother"bind pub -|- !samode    zop:samodeproc zop:samode {nick host hand chan arg} {  global gogo  if {![string equal $chan $gogo(operchan)]} {   return 0  }  if {$gogo(noav)} {   putquick "NOTICE $nick :Not available! Sorry I'm busy!"   return 0  }  set samodechan [lindex [split $arg] 0]  if {$samodechan == ""} {   putquick "NOTICE $nick :No channel! Syntax: !samode &lt;#Channel&gt; &lt;+/-chanmode&gt;"   return 0  }  set chanmode [lrange [split $arg] 1 end]  if {$chanmode == ""} {   putquick "NOTICE $nick :No mode! Syntax: !samode &lt;#Channel&gt; &lt;+/-chanmode&gt;"   return 0  }   bind RAW -|- 322         go:check   set gogo(noav) 1      set gogo(samodechan) "$samodechan"   set gogo(chanmode) "$chanmode"   putquick "LIST $gogo(samodechan)"  }proc go:check {from keyword arg} {global gogo botnick  if {(![string match "$gogo(samodechan)" $arg])} {    putquick "PRIVMSG $gogo(operchan) :Please wait • • • •"    putquick "SAMODE $gogo(samodechan) $gogo(chanmode)"    putquick "PRIVMSG $gogo(operchan) :Done!"    set gogo(noav) 0} else {    putquick "PRIVMSG $gogo(operchan) :Please wait • • • •"    putquick "PRIVMSG $gogo(operchan) :There's no chan with this name on the network!"    set gogo(noav) 0   }}</code></pre></div>The command !samode works, but when i type a channel that doesn't exist on the network, the script is hanging on with my busy message.<br><br>Can you tell me pls, whats wrong?<br><br>In the partyline are no errors.<br><br>thx4help <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=6110">tessa1</a> — Wed Jun 22, 2005 1:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
