Originally Posted By: Loki12583
Originally Posted By: judge2020
can you make this op only?

If you want any code to be accessible only to ops it takes a single line:

Code:
if ($nick !isop #) return

when i put that in, i get this error (worked before):
Code:
-> *than:* Could not create poll.
-
* /sockwrite: 'HTTP/1.0' no such socket (line 389, remote.ini.ini)
-
ON Unknown command
-
ON Unknown command
-

and here is my line 387-397:
Code:
on *:sockopen:strawpoll.*:{
  var %a = sockwrite -n $sockname
  %a $hget($sockname,method) $hget($sockname,request) HTTP/1.0
  %a Host: $hget($sockname,host)
  %a Connection: close
  if ($hget($sockname,data) != $null) {
    %a Content-Type: application/x-www-form-urlencoded
    %a Content-Length: $len($v1)
  }
  %a $+($crlf,$hget($sockname,data))
}
-

Last edited by judge2020; 02/04/14 04:41 PM.

#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball