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

	<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-08-26T20:42:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[AUTIST]]></name></author>
		<updated>2005-08-26T20:42:45-04:00</updated>

		<published>2005-08-26T20:42:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54883#p54883</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54883#p54883"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54883#p54883"><![CDATA[
Big thanks! It works with bind RAW<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4503">AUTIST</a> — Fri Aug 26, 2005 8:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-26T15:30:30-04:00</updated>

		<published>2005-08-26T15:30:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54875#p54875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54875#p54875"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54875#p54875"><![CDATA[
I suspect this happens because of eggdrop's inability to properly handle modes that it doesn't support (chanmodes are hardcoded in eggdrop); in this case, parameter $v is obviously empty, and it shouldn't be empty<br><br>try to substitute [bind mode] with [bind raw], your raw proc will need to handle MODE lines; check tcl-commands.doc on info how to do that; if you are stuck, ask for help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Aug 26, 2005 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AUTIST]]></name></author>
		<updated>2005-08-26T15:04:28-04:00</updated>

		<published>2005-08-26T15:04:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54874#p54874</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54874#p54874"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54874#p54874"><![CDATA[
Let me explain, you used next (testing only for 'q' flag):<div class="codebox"><p>Code: </p><pre><code>bind mode - * moo proc moo {n u h c m v} {    switch -- $m {     "+q" {lappend ::owns($c) $v   putlog "+own $::owns($c)"}    "-q" {if {[info exists ::owns($c)] &amp;&amp; [set i [lsearch -exact $::owns($c) $v]] != -1} {   putlog "-own $::owns($c) $i"  set ::owns($c) [lreplace $::owns($c) $i $i] putlog "-own $::owns($c)"      }}    } } </code></pre></div>I am on a channel with +q flag (~) only.<br>The bot is coming to the channel and make the list owns with only one element AUTIST.<br>The I changed the mode:<blockquote class="uncited"><div>Mode(AUTIST) sets (-q AUTIST)</div></blockquote>Bot loggin into console:<blockquote class="uncited"><div>[14:53] -own AUTIST {} 1<br>[14:53] -own AUTIST</div></blockquote>The second log it's is a list after deleteing me. Why I am still in the list?<br><br>Also, the same situation but I am not a ChanOwner (have not +q)<br>The owns list is empty when bot joining a channel.<br>Then I ask chanserv to make me owner:<blockquote class="uncited"><div>Mode(ChanServ) sets (+q FREEK)</div></blockquote>The bot should add me to a own list.<br>But in console the list is still empty....<blockquote class="uncited"><div>[15:02] +own {}</div></blockquote>Can you help me to resolve this?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4503">AUTIST</a> — Fri Aug 26, 2005 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-26T13:31:54-04:00</updated>

		<published>2005-08-26T13:31:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54870#p54870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54870#p54870"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54870#p54870"><![CDATA[
post a channel log with those modes (a/q) from your bot or IRC client<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Aug 26, 2005 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AUTIST]]></name></author>
		<updated>2005-08-26T11:42:08-04:00</updated>

		<published>2005-08-26T11:42:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54867#p54867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54867#p54867"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54867#p54867"><![CDATA[
Yes, thanks, but one more problem <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>I use this for debug:<div class="codebox"><p>Code: </p><pre><code>"+q" {lappend ::owns($c) $v   putlog "$m $v"} </code></pre></div>but in the bot console only +q appeared... without nickname. As the result it not deleting nicks if -flag and not adding is +flag. Cannot catch why it doesn't appear<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4503">AUTIST</a> — Fri Aug 26, 2005 11:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-26T00:43:40-04:00</updated>

		<published>2005-08-26T00:43:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54829#p54829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54829#p54829"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54829#p54829"><![CDATA[
I don't use Unreal (it's a bloated mess), but I guess the server notifies channel members on sop/owner status change via +a/+q and -a/-q MODE change sent to channel (deduced from your last posting); if that's not the case and/or this doesn't work, you are on your own to fix it, I can't be bothered to investigate on real Unreal hehe <div class="codebox"><p>Code: </p><pre><code>bind mode - * mooproc moo {n u h c m v} {   switch -- $m {   "+a" {lappend ::sops($c) $v}   "+q" {lappend ::owns($c) $v}   "-a" {if {[info exists ::sops($c)] &amp;&amp; [set i [lsearch -exact $::sops($c) $v]] != -1} {         set ::sops($c) [lreplace $::sops($c) $i $i]      }}   "-q" {if {[info exists ::owns($c)] &amp;&amp; [set i [lsearch -exact $::owns($c) $v]] != -1} {         set ::owns($c) [lreplace $::owns($c) $i $i]      }}   }}bind raw - 353 foo ;# NAMES replyproc foo {f k t} {   set chan [lindex [split $t] 2]   set nicks [lrange [split $t] 3 e]   set ::sops($chan) {}   set ::owns($chan) {}   foreach n $nicks {      set i 0      set nick [string trimleft $n :$::opchars]      while {1} {         set c [string index $n $i]         if {[string first $c :$::opchars] == -1} {break}         if {$c == "&amp;"} {lappend ::sops($chan) $nick}         if {$c == "~"} {lappend ::owns($chan) $nick}         incr i      }   }}bind raw - 366 bar ;# End Of NAMES replyproc bar {f k t} {   # you can now use [issop] and [isown]}proc issop {nick chan} {   if {[lsearch -exact $::sops($chan) $nick] != -1} {return 1} {return 0}}proc isown {nick chan} {   if {[lsearch -exact $::owns($chan) $nick] != -1} {return 1} {return 0}} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Aug 26, 2005 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AUTIST]]></name></author>
		<updated>2005-08-25T22:50:50-04:00</updated>

		<published>2005-08-25T22:50:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54828#p54828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54828#p54828"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54828#p54828"><![CDATA[
And additional question:<br>The bot is joining the channel and update his list with sops and owns.<br>But any owner also has +ao mode.<br>When this owner sets -q (remove owner flag) for himself - the bot removes him from owns list, BUT he is a SOP now and his nick doesn't exist in the sops list.<br><br>Have any ideas how to track it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4503">AUTIST</a> — Thu Aug 25, 2005 10:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AUTIST]]></name></author>
		<updated>2005-08-25T22:46:52-04:00</updated>

		<published>2005-08-25T22:46:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54827#p54827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54827#p54827"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54827#p54827"><![CDATA[
Thanks, it works, but how can I track realtime modes? I mean if the bot is on the channel and any user have had a SOP status (+a) or may be it has both of them +aoq<br>May be you have any ideas how track it?<br><br>Is the <div class="codebox"><p>Code: </p><pre><code>bind mode - * catch_mode</code></pre></div> the best method to update the sops and owns list every time?<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4503">AUTIST</a> — Thu Aug 25, 2005 10:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-25T22:20:58-04:00</updated>

		<published>2005-08-25T22:20:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54826#p54826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54826#p54826"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54826#p54826"><![CDATA[
<blockquote class="uncited"><div>isnt this what 'set opchars' is for ?</div></blockquote>yeah, but the guy wants to know if a nick is actually "sop" or "owner" (according Unreal's designation), not simply if a nick is an op<br><br>of course, I've omitted MODE handling, but it's trivial, that guy should be able to add it himself<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Aug 25, 2005 10:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-08-25T22:05:56-04:00</updated>

		<published>2005-08-25T22:05:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54824#p54824</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54824#p54824"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54824#p54824"><![CDATA[
isnt this what 'set opchars' is for ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Aug 25, 2005 10:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-25T19:38:39-04:00</updated>

		<published>2005-08-25T19:38:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54820#p54820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54820#p54820"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54820#p54820"><![CDATA[
hmm I've got the feeling you didn't understand my suggestions<br><br>anyway, here's how to do it:<div class="codebox"><p>Code: </p><pre><code>bind raw - 353 foo ;# NAMES replyproc foo {f k t} {   set chan [lindex [split $t] 2]   set nicks [lrange [split $t] 3 e]   set ::sops($chan) {}    set ::owns($chan) {}    foreach n $nicks {      set i 0      set nick [string trimleft $n :@+&amp;~]      while {1} {         set c [string index $n $i]         if {[string first $c :@+&amp;~] == -1} {break}         if {$c == "&amp;"} {lappend ::sops($chan) $nick}         if {$c == "~"} {lappend ::owns($chan) $nick}         incr i      }   }}bind raw - 366 bar ;# End Of NAMES replyproc bar {f k t} {   # you can now use [issop] and [isown] }proc issop {nick chan} {   if {[lsearch -exact $::sops($chan) $nick] != -1} {return 1} {return 0}}proc isown {nick chan} {   if {[lsearch -exact $::owns($chan) $nick] != -1} {return 1} {return 0}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Aug 25, 2005 7:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AUTIST]]></name></author>
		<updated>2005-08-25T18:27:47-04:00</updated>

		<published>2005-08-25T18:27:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54812#p54812</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54812#p54812"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54812#p54812"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {([isop $nick $chan]) || ([isvoice $nick $chan]) || ([ishalfop $nick $chan]) || ([matchattr $hand n])} {return} else {set phrase [lindex $plist [rand [llength $plist]]]regsub -all -nocase {%nick} $phrase $nick phraseputserv "PRIVMSG $chan :$phrase"}</code></pre></div>This is a code.<br>This code check op, halfop, voice and botowner.<br>This check works for most irc network bacuse there are no more modes (flags) for user in channel. But, in the Unreal we have two additional flags (+a for SOP(superop) and +q for channel owner ). Like an op there is an additional symbol in nick ("@" for op) the has "&amp;" - for SOP and "~" - for ChanOwner.<br>How can I detect that user has +q or +a mode (the user SOP or ChanOwner)<br><br>I have tried to get all chanlist by using:<br><div class="codebox"><p>Code: </p><pre><code>set chlist [chanlist $chan]putlog "$chlist"</code></pre></div>but it's not create a list with additional sysmbol.<br><br>I need to catch the first spesial symbol if it is[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4503">AUTIST</a> — Thu Aug 25, 2005 6:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-25T18:14:57-04:00</updated>

		<published>2005-08-25T18:14:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54811#p54811</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54811#p54811"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54811#p54811"><![CDATA[
what did you try? post your code, we'll try to fix it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Aug 25, 2005 6:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AUTIST]]></name></author>
		<updated>2005-08-25T17:36:30-04:00</updated>

		<published>2005-08-25T17:36:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54808#p54808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54808#p54808"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54808#p54808"><![CDATA[
Hi, I have tried to catch names with the special symbols, but no result.<br><br>Could you please give me a some code how can I catch the nickname with the specialsymol, like &amp;AUTIST or ~AUTIST<br><br>Thanx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4503">AUTIST</a> — Thu Aug 25, 2005 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AUTIST]]></name></author>
		<updated>2005-08-24T23:08:18-04:00</updated>

		<published>2005-08-24T23:08:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54779#p54779</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54779#p54779"/>
		<title type="html"><![CDATA[How to detect SOP (&amp;nick) in Unreal ircd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54779#p54779"><![CDATA[
thanx guys, I'll try. I asked just to be sure that there is no standart command for this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4503">AUTIST</a> — Wed Aug 24, 2005 11:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
