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

	<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>2012-02-24T12:24:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2012-02-24T12:24:00-04:00</updated>

		<published>2012-02-24T12:24:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98854#p98854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98854#p98854"/>
		<title type="html"><![CDATA[Message to users who connect to my server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98854#p98854"><![CDATA[
Alternatively<br><div class="codebox"><p>Code: </p><pre><code># Server Notice catch - Notices to users on connect.# Edit the lines below to reflect what notice to send. If you add more, or remove some, don't forget to add/remove from the global arguments, under proc.set line1 "this is the first line to send to the connecting user."set line2 "this is the second line."set line3 "if you need a third, then this too."# set a list of exempt nicknames, or leave "" for none.set nonotice {  "nick1"  "nick2"  "nick3"}# ------ CODE BELOW ------bind raw - NOTICE server:noticesproc server:notices {from keyword arg} {  global nonotice line1 line2 line3    if {[string match -nocase "*Client connecting on*" $arg]} {      set nick [lindex [split $arg] 9]      foreach nonick $nonotice {        if {[string equal -nocase $nonick $nick]} {return}        putquick "NOTICE $nick :$line1"        putquick "NOTICE $nick :$line2"        putquick "NOTICE $nick :$line3"      }   }    if {[string match -nocase "*Client connecting at*" $arg]} {      set nick [lindex [split $arg] 8]      foreach nonick $nonotice {        if {[string equal -nocase $nonick $nick]} {return}        putquick "NOTICE $nick :$line1"        putquick "NOTICE $nick :$line2"        putquick "NOTICE $nick :$line3"      }   }} putlog "Connection Messenger loaded."</code></pre></div>Easily modified to suit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Fri Feb 24, 2012 12:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Regex]]></name></author>
		<updated>2012-02-13T11:15:55-04:00</updated>

		<published>2012-02-13T11:15:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98776#p98776</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98776#p98776"/>
		<title type="html"><![CDATA[Message to users who connect to my server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98776#p98776"><![CDATA[
Of course, this script may use..<br><br>If your connection message like that;<br><br>*** Notice -- Client connecting on port 6667: CLubber (mirc@85.97.---.--) [clients] <br><br>You may, send a message who connects your server.<br><div class="codebox"><p>Code: </p><pre><code>bind raw * notice connectionproc connection {from keyword arg} {  global botnick  if {[string match -nocase "*Client connecting on port*" $arg]} {    set nick [lindex $arg 9]    set port [string range [lindex [split [lindex $arg 8] ":"] 0] 0 end]    set ident [string range [lindex [split [lindex $arg 10] "@"] 0] 1 end]    set host [string range [lindex [split [lindex $arg 10] "@"] 1] 0 end-1]    putquick "PRIVMSG $nick Hi $nick!"    putquick "PRIVMSG $nick -"    putquick "PRIVMSG $nick Your Ident: $ident"    putquick "PRIVMSG $nick Your IP: $host"    putquick "PRIVMSG $nick Your Port: $port"    putquick "PRIVMSG $nick -"    putquick "PRIVMSG $nick Welcome to our server, irc.server.com"    putquick "PRIVMSG $nick If you have any ircd/services question you may join #help channel."    putquick "PRIVMSG $nick If you have any nick/server/ban question you may join #operhelp channel."  }}</code></pre></div>Your bot must be OPER. Otherwise it doesn't work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11617">Regex</a> — Mon Feb 13, 2012 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Johannes13]]></name></author>
		<updated>2012-01-31T14:46:22-04:00</updated>

		<published>2012-01-31T14:46:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98658#p98658</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98658#p98658"/>
		<title type="html"><![CDATA[Message to users who connect to my server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98658#p98658"><![CDATA[
It is simple:<br>1st: Your bot need to get all user connected messages. This is usually done by OPERing the bot.<br>2nd: You need the raw line that the server sends out to all opers (or peoples who should see such a thing).<br><br>Now you can use [bind raw] and extraxt the nick from that message with regexp. After you have the nick just send him a NOTICE. Sure, a PRIVMSG would work as well, but this would be annoying.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11381">Johannes13</a> — Tue Jan 31, 2012 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rUMENcho]]></name></author>
		<updated>2011-12-18T11:34:40-04:00</updated>

		<published>2011-12-18T11:34:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98408#p98408</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98408#p98408"/>
		<title type="html"><![CDATA[Message to users who connect to my server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98408#p98408"><![CDATA[
Hi,<br><br>I have an IRC server (ratbox 3.0) and i want to make one oper bot who will send a message to everyone who connect to my server.<br><br>Can anybody help me with this tcl?<br><br>Thanks <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=11857">rUMENcho</a> — Sun Dec 18, 2011 11:34 am</p><hr />
]]></content>
	</entry>
	</feed>
