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

	<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>2010-09-24T17:27:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[AK49BWL]]></name></author>
		<updated>2010-09-24T17:26:44-04:00</updated>

		<published>2010-09-24T17:26:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94506#p94506</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94506#p94506"/>
		<title type="html"><![CDATA[{SOLVED} Getting user modes for chan owners and admins]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94506#p94506"><![CDATA[
<blockquote class="uncited"><div><a href="http://thommey.tclhelp.net/?page=scripts" class="postlink">http://thommey.tclhelp.net/?page=scripts</a> has a script (arbitrary chanmodes) that provides you with [isowner] and [isadmin] for unrealircd which is what I assume you're using. If you don't, you might need to alter the mode parsing there, what I would need to do that is the CHANMODE= and PREFIX= information that comes on connect. If you're using unrealircd it will work fine</div></blockquote><br>You rock. No joke. Had to figure out that the user modes needed to be re-set on the channel before the script would detect everything correctly but it very well worked!! Yes, I use UnrealIRCd, and no modifications were needed. Thanks a ton!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11340">AK49BWL</a> — Fri Sep 24, 2010 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2010-09-24T10:11:54-04:00</updated>

		<published>2010-09-24T10:11:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94502#p94502</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94502#p94502"/>
		<title type="html"><![CDATA[{SOLVED} Getting user modes for chan owners and admins]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94502#p94502"><![CDATA[
<a href="http://thommey.tclhelp.net/?page=scripts" class="postlink">http://thommey.tclhelp.net/?page=scripts</a> has a script (arbitrary chanmodes) that provides you with [isowner] and [isadmin] for unrealircd which is what I assume you're using. If you don't, you might need to alter the mode parsing there, what I would need to do that is the CHANMODE= and PREFIX= information that comes on connect. If you're using unrealircd it will work fine<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Fri Sep 24, 2010 10:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AK49BWL]]></name></author>
		<updated>2010-09-24T08:17:27-04:00</updated>

		<published>2010-09-24T08:17:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94501#p94501</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94501#p94501"/>
		<title type="html"><![CDATA[{SOLVED} Getting user modes for chan owners and admins]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94501#p94501"><![CDATA[
The latter is what I'm going for. I'm the chanowner so I should only show on +q status, not +o as well. The bot is +ao, and as such should only show under +a. That is the intent, anyway, if any of that actually worked at all.<br><br>I guess my question is, is there anything similar to isop (ishalfop, isvoice) for chanadmins and chanowners? I thought maybe matchattr was something I could sub for that but apparently not.. I didn't realize that was a bot-only deal.<br><br>So, to answer question 1, I want IRC channel user modes, for all of them.<br>+q = chanowner, +a = chanadmin, +o = op.... the rest is known...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11340">AK49BWL</a> — Fri Sep 24, 2010 8:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2010-09-24T08:10:17-04:00</updated>

		<published>2010-09-24T08:10:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94500#p94500</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94500#p94500"/>
		<title type="html"><![CDATA[{SOLVED} Getting user modes for chan owners and admins]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94500#p94500"><![CDATA[
1) First of all, it isn't clear whether you want bot user modes or irc channel user modes or a mixture. At the moment you are using a mixture. For example you use matchattr for bot mode a (autovoice) but isop for irc channel op mode.<br><br>2) An if - else-if - else code block means that code stops at the first test passed. For example, if a user had BOT modes qa then user_q would be incremented because this is the first test passed, but user_a would not.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Sep 24, 2010 8:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AK49BWL]]></name></author>
		<updated>2010-09-24T17:27:05-04:00</updated>

		<published>2010-09-13T21:19:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94368#p94368</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94368#p94368"/>
		<title type="html"><![CDATA[{SOLVED} Getting user modes for chan owners and admins]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94368#p94368"><![CDATA[
Here's what I'm trying to do.. I'm attempting to show owners and admins on my livestats channel pages for my website, rather than them showing up as <em class="text-italics">just</em> OP users (which is how the livestats script was originally written). On my channel currently, there are 6 users: <br><br>~AK49BWL, +qo<br>&amp;GOD, +ao<br>&amp;The_Wolf, +ao<br>@badSol, +o<br>@roadlet_411, +o<br>Player5<br><br>when I use !usermodes to activate, I get this on the output:<br><br>q=1 a=0 o=4 h=0 v=0 n=1 total=6<br><br>So the admins are seemingly being ignored by the script, or I did something wrong... I'm quite new to scripting so the latter is probably the case. But the owner is being detected, so I did something correct there.<br><br>The script <em class="text-italics">works</em> in the sense that it runs and throws no errors, but it doesn't work like I had hoped. My script as it sits currently:<br><div class="codebox"><p>Code: </p><pre><code>#test.tcl - BWL's always-on TCL script testingbind pub - !usermodes pumproc pum {nick uhost hand channel arg} {  set users [llength [chanlist $channel]]  set user_total  $users  set user_q      0  set user_a      0  set user_o      0  set user_h      0  set user_v      0  set user_n      0      foreach user [chanlist $channel] {    if { [matchattr $user q $channel] } {      incr user_q    } elseif { [matchattr $user a $channel] } {      incr user_a    } elseif { [isop $user $channel] } {      incr user_o    } elseif { [ishalfop $user $channel] } {      incr user_h    } elseif { [isvoice $user $channel] } {      incr user_v    } else {      incr user_n    }  }  putserv "PRIVMSG $channel :q=$user_q a=$user_a o=$user_o h=$user_h v=$user_v n=$user_n total=$user_total"}putlog "BWL's Testing TCL Script loaded."</code></pre></div>EDIT:::<br><br>Well I did some further messing around but eventually put the script back the way it is up there... But I also did this: I made user AK49BWL just a regular user and tried !usermodes again, and it gave me the exact same result of q=1 a=0 o=4 h=0 v=0 n=1 total=6..... When there is no +qo! So I really don't know what's going on here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11340">AK49BWL</a> — Mon Sep 13, 2010 9:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
