Irc buffer and split()

irc buffer problem

Page 1 of 1

0 Replies - 912 Views - Last Post: 11 May 2009 - 04:30 AM Rate Topic: -----

#1 eviltoaster  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 08-May 09

Irc buffer and split()

Posted 11 May 2009 - 04:30 AM

===========
:eviltoaster
===========
privmsg
===========
#channel_name
===========
:hi


random text sometimes
===========

when someone write hi nothing works but when someone send hi hi my bot sends back hello.

and that's becouse i split at every space.
and :hi comes on it's own place
so where should i split to get :hi on its own place when people send only hi

split(lcase(recvbuffer),result()," ",0)


Is This A Good Question/Topic? 0
  • +

Page 1 of 1