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

	<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>2011-02-27T16:15:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-27T16:15:41-04:00</updated>

		<published>2011-02-27T16:15:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96245#p96245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96245#p96245"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96245#p96245"><![CDATA[
Ya it needed "* TS Control *" as match patten. After the last reply i was messing with it and got it working and was just about to reply back saying that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Sun Feb 27, 2011 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-02-27T16:12:40-04:00</updated>

		<published>2011-02-27T16:12:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96244#p96244</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96244#p96244"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96244#p96244"><![CDATA[
Needs better pattern then..<br>Try this, and post the output you get on ###1<div class="codebox"><p>Code: </p><pre><code>bind raw - NOTICE time:testproc time:test {from keyword text} {  if {[string match {* TS Control *} $text]} {    puthelp "PRIVMSG ###1 :SNOTICE matched \" *TS Control *\": \"$text\""  } {    puthelp "PRIVMSG ###1 :SNOTICE did not match \" *TS Control *\": \"$text\""  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Feb 27, 2011 4:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-27T16:08:02-04:00</updated>

		<published>2011-02-27T16:08:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96243#p96243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96243#p96243"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96243#p96243"><![CDATA[
Nope, that dont work either and no errors :/<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Sun Feb 27, 2011 4:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-02-27T15:12:39-04:00</updated>

		<published>2011-02-27T15:12:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96241#p96241</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96241#p96241"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96241#p96241"><![CDATA[
Be very careful using raw bindings, especially with the return values.<br><br>lrange returns a list, not a string, though "TS Control" is trivial enough to make it through safe enough. Personally, I'd use string match with a suitable glob-pattern instead.<div class="codebox"><p>Code: </p><pre><code>bind raw - NOTICE time:testproc time:test {from keyword text} {  if {[string match {\*\*\* Notice -- TS Control *} $text]} {    puthelp "PRIVMSG ###1 :$text"  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Feb 27, 2011 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-27T14:54:37-04:00</updated>

		<published>2011-02-27T14:54:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96239#p96239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96239#p96239"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96239#p96239"><![CDATA[
nope it dont work and no errors.<br><br>The notice the bot sees in its partyline chat is this:<br><br>-NOTICE- *** Notice -- TS Control - U:line set time to be 1298832788 (timediff: 0)<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Sun Feb 27, 2011 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-27T14:34:22-04:00</updated>

		<published>2011-02-27T14:34:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96236#p96236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96236#p96236"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96236#p96236"><![CDATA[
The notice starts with "TS Control"? If id dose, then:<div class="codebox"><p>Code: </p><pre><code>if {![string equal [lrange [split $text] 0 1] "TS Control"]} return</code></pre></div>should do what you want.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Feb 27, 2011 2:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-27T14:06:56-04:00</updated>

		<published>2011-02-27T14:06:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96234#p96234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96234#p96234"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96234#p96234"><![CDATA[
Hi caesar,<br><div class="codebox"><p>Code: </p><pre><code>bind raw * notice time:test proc time:test {from keyword text} {   putserv "PRIVMSG ###1 :$text" } </code></pre></div>takes all notices and relays them to channel ###1.<br><br>But...<br><br>How do i make it only send this notice:<br><br>-irc.myserver.net- *** Notice -- TS Control - U:line set time to be 1298829367 (timediff: 0)<br><br>I tryed <div class="codebox"><p>Code: </p><pre><code>if {"$text" != "NOTICE- *** Notice -- TS Control"} {         return         }</code></pre></div>But that dont work :/<br><br>?<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Sun Feb 27, 2011 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-21T10:34:16-04:00</updated>

		<published>2011-02-21T10:34:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96151#p96151</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96151#p96151"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96151#p96151"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm * "OperServ: *" relay:pubmproc relay:pubm {nick uhost hand chan text} {  putserv "PRIVMSG #opers :$text" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 21, 2011 10:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-21T10:22:01-04:00</updated>

		<published>2011-02-21T10:22:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96150#p96150</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96150#p96150"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96150#p96150"><![CDATA[
Yes that worked but not on all operserv commands as some dont notice like "/operserv staff"<br><br>Anyways please forget about the notice but do:<br><blockquote class="uncited"><div>It would be best to relay anything from #services that says operserv: <br><br>for example: <br><br>[13:57] &lt;Global&gt; LOGUSERS: mibbot_stats (<a href="mailto:mibbot_sta@HIDDEN.com">mibbot_sta@HIDDEN.com</a>) (Mibbit net stats bot) left the network (Mystic.demonirc.net). <br>[13:57] &lt;Global&gt; OperServ: Gemster: oper list <br>[13:57] &lt;Global&gt; NickServ: Master-Sima-Yi!<a href="mailto:Mibbit@HIDDEN.nl">Mibbit@HIDDEN.nl</a> identified for nick Master-Sima-Yi <br>[13:58] &lt;Global&gt; LOGUSERS: IRCTools (IRCTools@HIDDEN) (IRCTools :IRCTools) [HIDDEN] connected to the network (Mystic.demonirc.net). <br><br>But i only want it to relay this part: <br><br>[13:57] &lt;Global&gt; OperServ: Gemster: oper list </div></blockquote>I think this way would be more efficent as it will post all commands that are sent to operserv<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Mon Feb 21, 2011 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-21T10:05:49-04:00</updated>

		<published>2011-02-21T10:05:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96149#p96149</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96149#p96149"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96149#p96149"><![CDATA[
Aww, crap. Replace:<div class="codebox"><p>Code: </p><pre><code>bind raw * oper:notice </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>bind raw * notice oper:notice </code></pre></div>You should get something..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 21, 2011 10:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-21T10:02:00-04:00</updated>

		<published>2011-02-21T10:02:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96148#p96148</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96148#p96148"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96148#p96148"><![CDATA[
Nope nothing, no errors just nothing :/<br><br>It would be best to relay anything from #services that says operserv:<br><br>for example:<br><br>[13:57] &lt;Global&gt; LOGUSERS: mibbot_stats (<a href="mailto:mibbot_sta@HIDDEN.com">mibbot_sta@HIDDEN.com</a>) (Mibbit net stats bot) left the network (Mystic.demonirc.net).<br>[13:57] &lt;Global&gt; OperServ: Gemster: oper list<br>[13:57] &lt;Global&gt; NickServ: Master-Sima-Yi!<a href="mailto:Mibbit@HIDDEN.nl">Mibbit@HIDDEN.nl</a> identified for nick Master-Sima-Yi<br>[13:58] &lt;Global&gt; LOGUSERS: IRCTools (IRCTools@HIDDEN) (IRCTools :IRCTools) [HIDDEN] connected to the network (Mystic.demonirc.net).<br><br>But i only want it to relay this part:<br><br>[13:57] &lt;Global&gt; OperServ: Gemster: oper list<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Mon Feb 21, 2011 10:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-21T10:06:44-04:00</updated>

		<published>2011-02-21T09:54:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96147#p96147</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96147#p96147"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96147#p96147"><![CDATA[
Try with this instead:<div class="codebox"><p>Code: </p><pre><code>bind raw * notice oper:notice proc oper:notice {from keyword text} {  putserv "PRIVMSG #opers :$text"} </code></pre></div>edit: fixed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 21, 2011 9:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-21T09:39:27-04:00</updated>

		<published>2011-02-21T09:39:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96146#p96146</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96146#p96146"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96146#p96146"><![CDATA[
Thanks caesar, i tryed that but it dont do anything and no errors.<br><br>I think its a snotice not  a normal notice.<br><br>Anyways forget about that, i have a better idea. I have my eggie sat in channel #services and it says this:<br><br>[13:28] &lt;Global&gt; OperServ: Gemster: admin list<br><br>it says that in that chan on all operserv commands used.<br><br>So could it be possable for the bot to grap that and say in channel #opers something like this:<br><br>"$nick just used command OperServ: admin list"<br><br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Mon Feb 21, 2011 9:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-21T02:13:03-04:00</updated>

		<published>2011-02-21T02:13:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96138#p96138</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96138#p96138"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96138#p96138"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind notc O * oper:noticeproc oper:notice {nick uhost hand text dest} {  if {$dest != ""} return  putserv "PRIVMSG #opers :$text"}</code></pre></div>Add OperServ to your bot's userlist and give it the 'O' flag.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 21, 2011 2:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-20T06:51:36-04:00</updated>

		<published>2011-02-20T06:51:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96124#p96124</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96124#p96124"/>
		<title type="html"><![CDATA[grabbing notices from operserv and relay them to a channel ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96124#p96124"><![CDATA[
Hi,<br><br>Ok i have an eggie that is netadmin on my net.<br><br>what i need it when operserv notices it, it will take  that notice and say it in channel #opers.<br><br>Or just point me to the right command for this ?<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Sun Feb 20, 2011 6:51 am</p><hr />
]]></content>
	</entry>
	</feed>
