我正在编写脚本remote.ini.脚本看起来像
on 1:start:{
server some.irc.server
server -m another.irc.server
}
Run Code Online (Sandbox Code Playgroud)
该脚本运行良好,因为当我打开mIRC时,它会自动连接到上面的2个服务器
现在,我想连接到需要密码的irc服务器 abcdef
如何编写脚本remote.ini以连接到此服务器?
我想通过php 将mirc颜色代码转换为html.这是一个例子:http://searchirc.com/search.php?F=exact&T=chan&N=6246&I=anime-pirates
谢谢
这个套接字无法正常工作,我尝试了一切,但它从未真正显示引用.只是事先的文字.
on $*:TEXT:/^[!@](motivate|mqod|mqotd)/Si:#:{ if ($chan !isin %notlist) {
if ($sock(Motivation)) { notice $nick Please try again in a few seconds. | halt }
set %Motivation $iif($left($1,1) == @, msg $chan, notice $nick) $col
sockopen Motivation motivateus.com 80
} }
on *:SOCKOPEN:Motivation: {
sockwrite -nt $sockname GET /thoughts-of-the-day.htm HTTP/1.1
sockwrite -nt $sockname Host: motivateus.com
sockwrite -nt $sockname $crlf
}
on *:SOCKREAD:Motivation: {
if ($sockerr) { halt }
else {
var %sockreader | sockread %sockreader
if ($regex(%sockreader,(.+)"<br>)) {
%Motivation $+ Today's motivational …Run Code Online (Sandbox Code Playgroud)