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

	<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>2007-09-24T11:10:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[jeremie]]></name></author>
		<updated>2007-09-12T14:42:20-04:00</updated>

		<published>2007-09-12T14:42:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75894#p75894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75894#p75894"/>
		<title type="html"><![CDATA[sending a message to all ops on a channel [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75894#p75894"><![CDATA[
I'm not sure how you knew I was trying to work that one out too.<br><br>I have added that now and it's even better than before.<br><br>Thank you awyeah.<br><br> <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=9266">jeremie</a> — Wed Sep 12, 2007 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-09-12T03:29:53-04:00</updated>

		<published>2007-09-12T03:29:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75876#p75876</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75876#p75876"/>
		<title type="html"><![CDATA[sending a message to all ops on a channel [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75876#p75876"><![CDATA[
You will need this if the bot is op, so it doesn't need to message itself, heh.<br><div class="codebox"><p>Code: </p><pre><code>proc msg_ops {channel msg} {    if {![validchan $channel]} { return }    if {$msg == ""} { return }    foreach user [chanlist $channel] {        if {$user != "" &amp;&amp; [isop $user $channel] &amp;&amp; ![isbotnick $user]} {            puthelp "PRIVMSG $user :[join $msg]"        }    }    return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Sep 12, 2007 3:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeremie]]></name></author>
		<updated>2007-09-10T16:29:59-04:00</updated>

		<published>2007-09-10T16:29:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75851#p75851</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75851#p75851"/>
		<title type="html"><![CDATA[[Solved] sending a message to all ops on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75851#p75851"><![CDATA[
I tried that and it worked perfectly.<br><br>Thank you TCL_no_TK and Tosser^^<br><br> <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=9266">jeremie</a> — Mon Sep 10, 2007 4:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-09-10T16:27:12-04:00</updated>

		<published>2007-09-10T16:27:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75850#p75850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75850#p75850"/>
		<title type="html"><![CDATA[sending a message to all ops on a channel [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75850#p75850"><![CDATA[
You're msg_ops proc is bad, you should check the dest syntax correctly, see if the channel is added etc...<br><div class="codebox"><p>Code: </p><pre><code>proc msg_ops {channel msg} {    if {![validchan $channel]} { return }    if {$msg == ""} { return }    foreach user [chanlist $channel] {        if {$user != "" &amp;&amp; [isop $user $channel]} {            puthelp "PRIVMSG $user :[join $msg]"        }    }    return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Sep 10, 2007 4:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-09-10T07:12:14-04:00</updated>

		<published>2007-09-10T07:12:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75839#p75839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75839#p75839"/>
		<title type="html"><![CDATA[Re: sending a message to all ops on a channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75839#p75839"><![CDATA[
Try this<div class="codebox"><p>Code: </p><pre><code>foreach target [chanlist $dest] { if {[isop $target $dest]} {  puthelp "PRIVMSG $target :$warning" }}</code></pre></div> Please set <em class="text-italics">dest</em> to what the #channel_name is, and <em class="text-italics">warning</em> to the message it will send to the ops. You can also make this into a proc by doing.<div class="codebox"><p>Code: </p><pre><code>proc msg_ops {text} { set dest [lindex [split $text] 0]  set warn [join [lrange [split $text] 1 end]]   foreach target [chanlist $dest] {    if {[isop $target $dest]} {     puthelp "PRIVMSG $target :$warn"    }   }; return 1}</code></pre></div> The use <strong class="text-strong">msg_ops "#channel some_warning_message"</strong> in your script to send a private warning to all ops on the channel. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Hope it helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Mon Sep 10, 2007 7:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeremie]]></name></author>
		<updated>2007-09-24T11:10:05-04:00</updated>

		<published>2007-09-09T16:06:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75825#p75825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75825#p75825"/>
		<title type="html"><![CDATA[sending a message to all ops on a channel [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75825#p75825"><![CDATA[
I have been writing a script which warns somebody if they say a banned word on a channel.<br><br>It sends a warning to that person and I want it to send a private message to all ops on the channel.<br><br>I know how to send it as a notice but the ops would rather have it sent to them as a private message.<br><br>I have looked in as many places I can think of and not found any solution.<br><br>Will somebody please help me with this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9266">jeremie</a> — Sun Sep 09, 2007 4:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
