A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4751

Backtrace:

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 4751
Function: _error_handler

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 4674
Function: _optimize_regexp_list_tokens_to_string

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 1685
Function: optimize_regexp_list

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 2061
Function: optimize_keyword_group

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 2200
Function: build_parse_cache

File: /srv/http/cxcore/stikked/htdocs/application/libraries/Process.php
Line: 45
Function: parse_code

File: /srv/http/cxcore/stikked/htdocs/application/models/Pastes.php
Line: 494
Function: syntax

File: /srv/http/cxcore/stikked/htdocs/application/controllers/Main.php
Line: 656
Function: getPaste

File: /srv/http/cxcore/stikked/htdocs/index.php
Line: 315
Function: require_once

Bot - CorePaste
From Max`P, 9 Months ago, written in D.
This paste will die in 1 Second.
Embed
  1. import std.stdio;
  2. import IRC = irc.client;
  3. import irc.tls;
  4. import irc.data;
  5. import irc.handlers;
  6. import irc.chanbot;
  7.  
  8. shared static this() {
  9.         auto bot = new MyBot(User("Cuntanna"));
  10.         bot.connect(connectTCP("...", 6667));
  11. }
  12.  
  13. class MyBot : IRC.Client {
  14.         import vibe.core.log;
  15.        
  16.         this(User user) {
  17.                 super(user, autocommands(this));
  18.         }
  19.        
  20.         @command("001")
  21.         public void onWelcome(Message msg) {
  22.                 send("JOIN", "#test");
  23.         }
  24.        
  25.         mixin PerChannel;
  26.        
  27.         void onInvalidChan(string source, string chan, string command, string[] data) {
  28.                 if(chan[0] != '#') return;
  29.                 _channels[chan] = autochancommands(new MyChanBot(chan));
  30.                 toChan(chan, source, command, data);
  31.         }
  32.        
  33.         class MyChanBot {
  34.                 string channel;
  35.                
  36.                 this(string channel) {
  37.                         this.channel = channel;
  38.                 }
  39.                
  40.                 @trigger("^@ping")
  41.                 public void echo(string source, TriggerArgs args) {
  42.                         send("PRIVMSG", channel, source.parseUser().nick~": pong!");
  43.                 }
  44.         }
  45. }
  46.